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

021699
045428
05883
072165
0104666
0122469
0146834
0166558
0177992
0198188
020482
021-1
0265179
0294212
0324649
033530
0345049
0351384
0404882
042618
0431934
0441397
0463465
0475622
0503064
101491
121195
13770
161448
194303
1118104
114-7
1176512
1214797
1222671
1233387
1271056
1292878
1304795
1313899
1321083
13569
1368769
137458
1388058
1404594
1422984
1430
1442679
1495063
1508523
151486
206316
234474
243427
256951
26-7
274834
282368
2122997
2135016
2167373
2201283
224635
2256933
2283068
2295368
2340
2356094
2392920
2416550
2427328
2434520
2444128
2451358
2491461
2505180
2512779
306451
3131
346179
35598
38-6
39-1
3102553
3112634
3122106
3136195
3143461
3156687
3175941
3182884
3192632
3221717
3233846
3244190
326318
327-5
3292269
3307086
332492
3373508
3403193
3415876
3462016
3488653
3504681
402887
42338
451983
483125
491025
4107763
4137615
4146429
4162712
418680
4197090
4206422
4248320
4252644
4278543
4298376
4314540
4358032
4386325
4393429
4405354
4412136
4441595
4452720
4472924
4483699
4517409
501684
514019

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