My Submission: https://codeforces.com/contest/1362/submission/82595064
Test Case which it fails on:
Answer when you run it locally:
Answer by Codeforces System:
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:
-1 as expected, but while testing my code idk why it gave WA.