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, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.

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

Your Answer

42969220514713
820
42969160701681
42969131710617
42969373478167
42969302513966
42969240867043
42969171144029
42969181343684
42969203406959
2815023
42969061914210
445
42969133618647
42969147797137
42969016448033
207
564
42969094165312
42969102305347
42969091182152
42969043124391
42969063326621
872
458
42969119872246
42969256380028
42969468242413
42968997090351
42969235175408
135
462
996
42969469022126
42969041704671
42969308701399
42969003684600
42969069855442
74
42969024242286
42969398024790
853
365
42969458618564
716
606
42969182684733
42969384746701
42969108282959
473
42969168877616
42969115699303
42969308865484
42969190938188
42969451902798
42969150155637
42969455083122
42969134231211
42969166484080
919
42969202976363
42969223150118
42969227622206
42969150881288
631
42969072653855
42969195469610
42969104915412
42969121593222
42969133409305
999
345
42969353586508
42969323928610
5904497
42969070874991
481
42969102865774
42969383889127
42969198794369
42969181921129
102
42969231371121
42969427140229

JOJ Answer

1233803008
820
1173989976
1144998912
1386766462
1315802261
1254155338
1184432324
1194631979
1216695254
1002798032
1075202505
445
1146906942
1161085432
1029736328
207
564
1107453607
1115593642
1104470447
1056412686
1076614916
872
458
1133160541
1269668323
1481530708
1010378646
1248463703
135
462
996
1482310421
1054992966
1321989694
1016972895
1083143737
74
1037530581
1411313085
853
365
1471906859
716
606
1195973028
1398034996
1121571254
473
1182165911
1128987598
1322153779
1204226483
1465191093
1163443932
1468371417
1147519506
1179772375
919
1216264658
1236438413
1240910501
1164169583
631
1085942150
1208757905
1118203707
1134881517
1146697600
999
345
1366874803
1337216905
1005887506
1084163286
481
1116154069
1397177422
1212082664
1195209424
102
1244659416
1440428524
1254687385
84
591
353
1068019606
1133526273
1185813900
1365580645
1196649571
1146902648
721
1231709074
261
615
1103794510
1207127048
142
1148518390
1021287780
1045573703
260
1230908772
296
577
1246377517
1256609726
1342672325
1129789041
1183155741