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

Правка en1, от Tehjeeb, 2022-06-22 23:15:01

My submission: https://codeforces.net/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)

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Tehjeeb 2022-06-22 23:15:01 294 Initial revision (published)