When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

ndakostan's blog

By ndakostan, 9 years ago, In English

I try to solve this problem 2B in Java. My class was compiled in Eclipse but when I submited it, Codeforces's verdict is runtime error. I have read other's code in Java but I can't find out the problem. Why did it happen? Here is my code

  • Vote: I like it
  • +2
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

Try custom test to debug your code custom test EDT : Delete first line in your code. You can't open a package in Codeforces.

»
9 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

you can use long long int :)