Message358622
I'm a Competitive programmer and got Wrong Answer because of this division issue, which I figured out post Contest. Please See the attached screenshot.
The "/" operator gives float division but for long integers, it's giving integer answer. I've tested it on several values but the result doesn't matched with expected answers. I've also googled a lot about this but can't get the explanation.
Please go to link "https://codeforces.com/contest/1266/submission/67106918"
and see the actual arise of problem on SEVERAL VALUES, in detail section, in TestCase 3 which have very large integers.
In my code at that link, the error arises inside the function get(x) at line "c=(x-i)/14" |
|
Date |
User |
Action |
Args |
2019-12-18 11:57:14 | Mradul | set | recipients:
+ Mradul, docs@python |
2019-12-18 11:57:14 | Mradul | set | messageid: <1576670234.02.0.553582573696.issue39086@roundup.psfhosted.org> |
2019-12-18 11:57:13 | Mradul | link | issue39086 messages |
2019-12-18 11:57:13 | Mradul | create | |
|