Need to know the why output on codeforces and my machine are different

Revision en1, by Akuver, 2020-02-25 19:05:27

Here is my solution for the problem 6B(https://codeforces.com/contest/6/problem/B): https://codeforces.com/contest/6/submission/71870236 On my machine when I enter the sample test case, I get the correct answer. However, codeforces shows answer as 3 for my code instead of 2. Help me with the issue.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Akuver 2020-02-25 19:05:27 375 Initial revision (published)