This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mradul
Recipients Mradul, docs@python
Date 2019-12-18.11:57:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576670234.02.0.553582573696.issue39086@roundup.psfhosted.org>
In-reply-to
Content
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"
History
Date User Action Args
2019-12-18 11:57:14Mradulsetrecipients: + Mradul, docs@python
2019-12-18 11:57:14Mradulsetmessageid: <1576670234.02.0.553582573696.issue39086@roundup.psfhosted.org>
2019-12-18 11:57:13Mradullinkissue39086 messages
2019-12-18 11:57:13Mradulcreate