A. Gabriel and Caterpillar Test case 9 issue

Revision en2, by divyam01986, 2016-07-30 02:49:03

How come test case number 9 in my submission has failed? Doesn't the caterpillar slip below ground level the first night and then catch the apple the next day. In the first day he is at height 801 cm but then at night he drops 1188cm (which would put him below ground). Could someone please explain why my assumption is wrong as the note in the problem announcements is unclear.

Link to problem:http://www.codeforces.com/contest/652

Link to Submission:http://www.codeforces.com/contest/652/submission/19505251

Problem announcement note:"Note that the forest is magic so the caterpillar can slip down under the ground and then lift to the apple." means that it is possible to slip down under the ground, but then lift to the apple. It doesn't mean that the caterpillar get the apple right after slipping down under the ground.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English divyam01986 2016-07-30 02:49:03 373
en1 English divyam01986 2016-07-30 02:43:25 507 Initial revision (published)