QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#875316#4809. Maximum RangeMarSer020WA 35ms12360kbC++262.6kb2025-01-29 15:50:372025-01-29 15:50:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 6088kb

input:

5 7
1 2 1
1 3 -2
2 3 1
3 4 3
4 5 1
1 5 -1
2 5 2

output:

5
4
3 4 5 1 

result:

ok ok

Test #2:

score: -100
Wrong Answer
time: 35ms
memory: 12360kb

input:

99997 100000
12238 99016 352755196
99016 25485 -412473602
25485 2440 991507552
2440 31171 -181894654
36970 2440 -800167579
2440 41865 -148191946
96629 31171 847888506
36970 95740 395546542
27992 2440 647886610
99016 29557 369124914
80795 27992 -673871966
36970 3509 573208857
57672 29557 874406776
41...

output:

1959330954
24
31171 2440 25485 99016 29557 57672 69259 68883 44442 4697 96048 94991 96048 4697 44442 68883 69259 57672 29557 99016 25485 2440 31171 95092 

result:

wrong answer Cycle contains repeated edge 94991-96048