angel3's blog

By angel3, 12 years ago, In English

I got WA in the final test in this problem. It failed to pass test case no 36. But I applied this case in the compiler of my pc and got the right output. Here is the submission.

Can anybody clarify what happened with this?

  • Vote: I like it
  • -4
  • Vote: I do not like it

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

I don't know, but 2349041 is your solution.

»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I replaced scanf() with cin>> and got AC. can't I use scanf() when i declare a __int64 type variable?

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    u can use scanf("%I64d", &x). but if ur compiler is g++ in linux, you may have to declare long long instead of __int64, and the input and output should be "%lld", but dont forget to replace "%lld" by "%I64d" when u solve problems in this oj. that's one of the difference between two compilers.