Thishandleiscurrent's blog

By Thishandleiscurrent, history, 6 years ago, In English

On Ideone my code ran correctly for the first two Test Cases(Couldn't check for more):

https://ideone.com/mpY9eM

But on Codeforces it's showing Runtime Error for the first Test Case.

Can anyone help?

| Write comment?
»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

The return code of the first test of your submission suggests a stack overflow. Try using ints instead of long long ints.