Something went wrong in the first problem in Facebook hacker cup

Revision en1, by soba, 2019-06-24 02:08:10

In Facebook hacker cup I submitted a code in the first problem "leapfrog ch.1 " and after the contest I got WA , then I submitted the same code in the same problem on gym https://codeforces.net/gym/102249/attachments?mobile=false and I got AC so what is the wrong in my code ? And if it is correct why I got WA in facebook hacker cup ?

My code : https://ideone.com/6R8ChG

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English soba 2019-06-24 02:08:10 441 Initial revision (published)