Why different outputs?

Revision en1, by Nagadon, 2021-02-23 18:36:48

On the third sample input, I'm getting output 1 in my IDE. However, when I submit my solution, I get 2. https://codeforces.net/problemset/problem/1036/A

Why does this happen?

Code: https://codeforces.net/contest/1036/submission/108317612

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Nagadon 2021-02-23 18:36:48 265 Initial revision (published)