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

0
1357
889
1611
657
1261
2647
898
889
958
0
1611
1358
2647
958
657
1261
1280
1357
1611
1611
1320
1280
851
0
1338
2647
1358
1280
0
1333
1280
1611
1702
2647
1883
1883
1261
1848
851
1333
1320
2647
898
1358
1261
1883
657
0
1357
1358
0
1320
958
1883
1358
3101
1280
1358
2647
1280
1848
889
1338
1357
0
1333
898
1358
1261
1848
2647
958
1883
3101
1358
1848
2647
1611
1702
1611
1261
958
898
851
1320
1338
851

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