Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

203 0
1593
5 18
695
6 11
852
1 7
911
14 16
497
9 17
2547
14 3
1796
13 19
1957
5 11
1472
11 2
1454
4 0
941
19 7
763
9 6
2067
17 3
2130
6 2
1389
12 16
980
2 17
1346
11 12
391
12 18
1680
17 7
1094
14 7
760
1 5
620
9 12
2894
1 14
151
16 0
919
3 4
1071
5 3
2643
10 6
650
19 12
432
5 0
1476
13 1
2288
0 12
1280
4 7
1659
19 9
854
4 3
2002
19 15
1035
13 15
850
16 17
1181
17 13
1331
0 14
851
3 1
2374
18 5
1687
7 3
3220
15 19
2341
3 6
1156
13 17
1859
17 15
1039
8 16
1469
6 0
856
3 18
8
17 6
1248
16 0
919
2 5
1405
7 2
2172
2 15
1365
2 6
866
7 8
3674
5 12
1863
13 6
2044
14 3
1796
3 12
1980
2 13
2676
14 11
38
12 4
1661
1 18
1315
13 0
1059
5 1
1360
1 19
198
16 6
701
6 17
480
4 13
1896
10 3
2567
8 2
1770
6 15
1519
10 8
3714
10 6
650
10 13
2461
18 3
3065
15 7
3054
14 9
851
2 7
2004
3 17
1636
7 2
2172
4 19
896
4 14
899
3 5
1695
1 4
1099
3 14
1551

JOJ Answer

1593
695
852
911
497
2547
1796
1957
1472
1454
941
763
2067
2130
1389
980
1346
391
1680
1094
760
620
2894
151
919
1071
2643
650
432
1476
2288
1280
1659
854
2002
1035
850
1181
1331
851
2374
1687
3220
2341
1156
1859
1039
1469
856
8
1248
919
1405
2172
1365
866
3674
1863
2044
1796
1980
2676
38
1661
1315
1059
1360
198
701
480
1896
2567
1770
1519
3714
650
2461
3065
3054
851
2004
1636
2172
896
899
1695
1099
1551