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 2 16990 4 54280 5 8830 7 21650 10 46660 12 24690 14 68340 16 65580 17 79920 19 81880 20 4820 21 -10 26 51790 29 42120 32 46490 33 5300 34 50490 35 13840 40 48820 42 6180 43 19340 44 13970 46 34650 47 56220 50 30641 0 14911 2 11951 3 7701 6 14481 9 43031 11 81041 14 -71 17 65121 21 47971 22 26711 23 33871 27 10561 29 28781 30 47951 31 38991 32 10831 35 691 36 87691 37 4581 38 80581 40 45941 42 29841 43 01 44 26791 49 50631 50 85231 51 4862 0 63162 3 44742 4 34272 5 69512 6 -72 7 48342 8 23682 12 29972 13 50162 16 73732 20 12832 24 6352 25 69332 28 30682 29 53682 34 02 35 60942 39 29202 41 65502 42 73282 43 45202 44 41282 45 13582 49 14612 50 51802 51 27793 0 64513 1 313 4 61793 5 5983 8 -63 9 -13 10 25533 11 26343 12 21063 13 61953 14 34613 15 66873 17 59413 18 28843 19 26323 22 17173 23 38463 24 41903 26 3183 27 -53 29 22693 30 70863 32 4923 37 35083 40 31933 41 58763 46 20163 48 86533 50 46814 0 28874 2 3384 5 19834 8 31254 9 10254 10 77634 13 76154 14 64294 16 27124 18 6804 19 70904 20 64224 24 83204 25 2

JOJ Answer

187
109
369
385
626
108
5
3
279
606
266
467
774
370
-12
130
585
312
36
464
288
308
526
60
344
192
208
775
316
-10
106
414
75
775
492
229
347
465
117
271
302
372
788
794
192
1034
321
399
248
37
400
468
529
151
126
380
6
22
29
355
372
524
825
472
418
298
423
358
1129
109
170
140
365
412
159
35
735
306
1199
111
176
61
64
394
108
567
716
235
302
1496
1262
435
151
87
700
352
495
141
61
202
67
464
329
626
1101
-2
531
-8
665
115
327
1291
38
108
479
139
550
316
563
477
333
23
288
407
316
233
-5
351
1104
1441
35
564
81
3
288
1628
152
85
186
79
59
863
173
1248
373
206
1272
571
569
45
-6
85
384
225
494
1174
173
145
-8
134
174
132
124
462
471
-8
567
-2
463
55
1029
469
417
100
69
61
540
232
1358
320
305
61
48
87
46
328
454
411
278
427
137
543
459
498
206
170
469
148
166
624
308
419
1075
135
106
57
342
172
66
352
238
233
-4
41
384
1131
111
406
329
263
342
17
-8
217
982
345
-1
615
471
1358
145
305
823
409
205
43
906
369
552
375
215
260
239
144
296
348
192
70
178
164
549
406
361
243
-3
233
230
312
0
251
73
520
478
802
118
74