Why am I getting -1 as output in TC 29? (it may print any other wrong value but not -1)

Revision en1, by Tehjeeb, 2022-06-22 23:15:01

My submission: https://mirror.codeforces.com/contest/1613/submission/161506133 Please someone help. I think I wrote the code correctly. It shouldn't get -1 as output(it may print any other wrong value but not -1)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Tehjeeb 2022-06-22 23:15:01 294 Initial revision (published)