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 1 9350 2 16910 3 55880 5 14400 6 46210 7 3040 8 19060 10 34450 11 27740 12 44450 14 35040 16 10760 17 79440 18 -4711 0 67931 2 77301 3 3491 5 1491 6 72611 7 44641 8 65511 9 13751 10 76071 12 33371 13 17511 14 79491 15 16381 16 6621 17 86161 18 18832 0 50802 1 22652 4 34382 6 50162 7 5402 10 25292 11 13012 12 31162 13 38372 14 10552 15 88042 16 89972 17 16652 18 57863 0 81763 1 23693 2 2343 5 79893 6 66843 7 52253 9 70173 10 84443 11 85403 12 36413 13 64733 14 4233 15 54523 16 41813 17 24654 0 5974 2 20844 3 22804 5 46494 6 42504 7 14804 8 87024 9 8124 10 64354 11 38084 12 49604 14 59674 15 56774 17 24684 18 26575 0 31175 1 49245 2 88005 6 61355 7 39545 9 8625 10 16065 12 55335 13 39645 14 19165 15 31475 17 81305 18 3356 0 49936 1 12996 2 71516 3 28916 5 84686 7 77796 10 18246 11 6726 12 44196 15 76316 16 75556 17 2427 0 27377 1 8257 2 84747 3 25767 4 1577 5 88467 6 10757 9 38527 10 9257 13 13967 15 3987 16 86867 17 63477 18 13098 0 48118 1 44058 2 48608 3 5728 5 10098 7 18638 9 33468 10 1188 11 82838 13 818

JOJ Answer

925
-247
499
1707
537
1055
1351
843
1009
801
1116
1535
542
578
597
619
1622
970
216
1311
149
305
1515
1806
564
-258
1685
483
540
1505
789
540
151
-374
-342
1229
1469
1548
1323
2261
122
1505
470
843
1172
356
-127
1599
1322
114
683
1109
233
-152
-120
1244
1229
1009
1535
470
1055
-195
1505
1449
441
1948
801
181
-279
-84
323
1047
1806
1400
-12
1400
817
596
107
149
320
352
342
1189
619
222
760
-471
323
334
414
-127
970
499
697
-342
542
697
1065
-342
-84
520
1034
378
118
1609
151
356
619
1260
537
169
743
564
1707
754
520
940
542
1244
344
-245
1322
1422
121
31
157
5
251
1299
931
789
1707
817
1016
-258
119
1010
828
286
563
679
754
200
119
564
910
238
226
-207
1311
754
1229
520
2065
373
1604
0
349
1448
746
579
151
122
1073
-364
470
760
854
342
323
2062
1548
470
470
597
235
-91
2027
226
1015
442
-163
2198
521
1274
1299
1465
743
151
-91
2304
1550
578
-163
342
356
149
242
233
378
1465
970
1274
591
984
1914
1536
442
970
1311
1203
1010
373
562
830
789
107
1301
1536
1015
-175
373
0
-207
828
1297
579
356
31
356
672
1322
1274