ronak037's blog

By ronak037, history, 5 years ago, In English

Question link: https://mirror.codeforces.com/contest/1334/problem/C.

I will attach my code further, in that in 3rd test case my answer coming incorrect but when I compiling same testcase in my VSCode then I get the correct results and I don't know why it is happening so please anyone helps me to resolve this. Thank You

Code link: https://mirror.codeforces.com/contest/1334/submission/76727603

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
5 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I also done your mistake when I solved that officially(but fixed it officially after 5 minutes). Your minimum value is LONG_MAX. The mini variable value must be equal to at least $$$3*10^{17}$$$. Make it $$$10^{18}$$$ just in case.

Edit: LONG_MAX is around $$$2*10^9$$$