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

542
170173
0 1 512
0 2 1415
0 3 4757
0 4 1266
0 5 3705
0 7 2297
0 8 1305
0 10 2825
0 11 922
0 13 2138
0 14 4248
0 16 508
0 17 3492
0 18 3171
0 19 3084
0 20 89
0 22 619
0 23 3792
0 25 3129
0 28 4624
0 29 1552
0 33 1387
0 34 2870
0 36 4377
0 37 795
0 38 3518
0 39 374
0 40 3019
0 42 3517
0 43 665
0 46 1858
0 47 3043
0 49 2623
0 50 -877
0 52 3024
0 54 -2292
0 55 776
0 56 4264
0 57 3282
0 58 909
0 59 1134
0 65 3345
0 66 930
0 68 1039
0 69 1417
0 72 1260
0 74 298
0 75 4444
0 78 3778
0 80 2974
0 81 1554
0 82 861
0 83 3838
0 84 2840
0 85 1915
0 86 124
0 89 3231
0 92 1648
0 93 4637
0 95 1341
0 96 371
0 98 3841
0 101 550
0 102 4432
0 103 182
0 104 3600
0 106 3617
0 108 4008
0 109 -4510
0 112 3724
0 114 1553
0 115 2439
0 118 2678
0 120 1647
0 122 967
0 123 333
0 124 413
0 125 1069
0 127 3565
0 128 2324
0 129 608
0 130 4291
0 132 3819
0 133 737
0 135 565
0 136 2272
0 138 1086
0 141 1733
0 142 1921
0 143 3859
0 145 4240
0 148 1541
0 149 3313
0 150 -1895
0 153 873
0 154 4444
0 160 1750
0 161 4496
0 163 1004
0 164 54
0 165 

JOJ Answer

Invalid graph. Exiting.