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

10000999
903279883
691907782
194786174
617105103
252643896
3909223
74091487
61570144
500111396
297147428
949137961
204282976
434908571
416788254
55882964
381774623
738743413
412277954
2199837
572788533
4832984
476363535
169777328
15319323
93368280
796195110
43959220
288129694
386247993
52195839
1386049
496236254
378186640
304170435
404458300
158621940
996570858
677469512
801820447
604707922
68950275
603286976
295744460
846530571
134632717
943397999
85568358
385939632
119180806
781127619
665391749
813540658
13521562
794991915
23961293
86861826
258735465
94520051
646136421
266856134
541491389
611240755
80414617
825121928
57882691
215537635
765756549
330452604
806756421
28058572
14409545
141297300
589820716
956914689
474273102
931745165
598181770
49489689
517135862
908512475
982426369
929270924
598351196
20086486
86264395
59470684
89311124
601811567
654263428
280323425
897717607
213783474
556979300
891697960
607358961
383312892
471283336
703627667
46430229
176657828
57956830
53060731
838342536
671224319
89211826

JOJ Answer

No path exists!
The graph is not a DAG
No MST exists!