First time using codeforces, everything looks alright except when I submit for above problem, although it runs perfect on my system, it keeps saying that my program is failing on the first testcase, although it outputs different on my system to what it says that my program outputs.
(g++)
2) I did file i/o, just that the judge didn't like my use of %lld with GNU C++