Now I got accepted
I followed my logic with no changes, but I implemented long numbers in a different way.
<spoiler>
the long number is represented as an array of 3 longs, which is sufficient for this problem
![:)](./images/smilies/icon_smile.gif)
</spoiler>
Code: Select all
9223372036854775806
Case 1: 142962266571249024962