The description says the input is guaranteed to be an integer, but several users have reported getting WA unless they read it as a floating point number. I had the same experience. In fact I ran my two scripts (WA and AC) on every valid input value (all integers 1...1000000), and the outputs were identical, according to diff. The only difference between the scripts is the AC one reads its input as floating point. So it seems like the test cases violate the problem description.
created
last reply
- 6
replies
- 953
views
- 5
users