Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Jumping Frog (II)

By kazi_nayeem · Limits 2s, 512 MB

Input

Output

Sample

InputOutput
1
5 11
0 0 1 5 3
2 1
2 2
2 3
2 4
2 5
1 4 0
2 1
2 5
2 3
1 1 4
2 1
Case 1:
no
no
yes
yes
yes
no
yes
no
yes

Discussion

Statistics


73% Solution Ratio

aaman007Earliest, May '19

RobbinFastest, 0.1s

ShadowMeLightest, 2.0 MB

serotoninShortest, 1268B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.