1066 — problem_ B

Revision en1, by restart_2.0, 2018-10-23 17:52:58

Whenever I run my code on compiler it's showing output "-1", but Codeforces shows "1" and gives WA. Can anyone explain the reason behind this?

Problem Link: 1066_B

My Solution: https://ideone.com/XdpmQJ?fbclid=IwAR3dgEZMtqeKHY60H5xKsN2S_5tMsxdLocCP7fINeYo2W3Bjksv7ArJwWoo

Tags #problem b

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English restart_2.0 2018-10-23 17:52:58 344 Initial revision (published)