QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#300125#83. Jumping Grasshopperlmq26052003WA 1ms5424kbC++172.7kb2024-01-07 18:25:332024-01-07 18:25:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3436kb

input:

10 4
1 8 5 6 10 20 12 15 2 4
L 2
R 3
U 10 16
L 9

output:

2
5
6

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3440kb

input:

1 5
459286520
L 1
U 1 772746366
U 1 928843666
R 1
U 1 937054519

output:

1
1

result:

ok 2 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 5424kb

input:

5 10
593533243 631485066 519299283 682090771 538860279
U 5 817141245
U 1 959331749
U 4 923872363
R 2
U 5 870220838
R 4
U 1 980405239
L 3
R 2
R 2

output:

1
4
1
1
1

result:

ok 5 lines

Test #4:

score: 0
Accepted
time: 0ms
memory: 5420kb

input:

10 50
350437702 476552988 598507862 42315934 326664970 957733029 128609487 678642866 623924231 900170898
R 8
U 8 707297133
L 2
U 7 196489199
U 6 961888418
L 3
R 4
R 9
R 8
U 4 718445226
U 4 774977932
R 8
U 8 716604413
L 8
U 1 356609473
U 3 881452560
L 9
U 5 877197879
L 9
U 7 227861500
U 1 561052511
U...

output:

6
2
3
6
6
6
6
6
6
6
6
4
4
6
1
1
3
10
6
6
4

result:

ok 21 lines

Test #5:

score: -100
Wrong Answer
time: 1ms
memory: 3604kb

input:

50 100
261734700 853221346 617427680 133608005 941856159 750722631 795428196 707149957 573700530 457178265 180028824 841168514 104059208 773139650 495325699 367786314 637124094 941080954 206563426 9329053 326119545 377780890 278174528 108260301 926568063 12091207 524435672 552272902 706001180 510050...

output:

853221346 2 993537764 31
5
941856159 5 993537764 31
31
993537764 31 655571274 50
47
853221346 2 993537764 31
5
941856159 5 993537764 31
31
941856159 5 993537764 31
31
993537764 31 823839290 50
40
981267854 7 993537764 31
31
981267854 7 997526217 25
25
997526217 25 823839290 50
40
997526217 25 823839...

result:

wrong answer 1st lines differ - expected: '5', found: '853221346 2 993537764 31'