647 Div 2 Wrong answer on Codeforces, Correct answer on the same test case case locally!!

Revision en3, by kaiyu, 2020-06-12 11:20:52

Problem: https://codeforces.com/contest/1362/problem/A

My Submission: https://codeforces.com/contest/1362/submission/82595064

Test Case which it fails on: 7 576460752303423481

Correct Answer: -1

Answer when you run it locally:-1

Answer by Codeforces System:1

You can check the test case details of my submission.

Why Codeforces gives WA on this code?

I ran the code on CLion by JetBrains.

Also I ran it on Codeforces Custom Invocation:

It gave -1 as expected, but while testing my code idk why it gave WA.

Tags wrong answer, wrong answer on contest, #codeforces, #where wrong

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English kaiyu 2020-06-12 11:20:52 5
en2 English kaiyu 2020-06-05 08:41:00 136
en1 English kaiyu 2020-06-05 08:31:46 498 Initial revision (published)