Problem: https://mirror.codeforces.com/contest/1362/problem/A
My Submission: https://mirror.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.