QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#622802#2060. White MageMaMengQiTL 750ms119068kbC++202.3kb2024-10-09 06:06:302024-10-09 06:06:30

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 13884kb

input:

5 6
2 1 2 10
3 3 4 5 18
2 4 5 6
1 3 7
1 2 4
1 1 11

output:

23

result:

ok answer is '23'

Test #2:

score: 0
Accepted
time: 1ms
memory: 5716kb

input:

3 2
2 1 2 5
2 2 3 5

output:

-1

result:

ok answer is '-1'

Test #3:

score: 0
Accepted
time: 0ms
memory: 9852kb

input:

3 4
3 1 2 3 10
1 1 2
1 2 3
1 3 4

output:

9

result:

ok answer is '9'

Test #4:

score: 0
Accepted
time: 1ms
memory: 9856kb

input:

3 4
3 1 2 3 8
1 1 2
1 2 3
1 3 4

output:

8

result:

ok answer is '8'

Test #5:

score: 0
Accepted
time: 1ms
memory: 7684kb

input:

3 3
2 2 3 8
2 1 3 2
2 1 2 3

output:

-1

result:

ok answer is '-1'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3632kb

input:

1 0

output:

-1

result:

ok answer is '-1'

Test #7:

score: 0
Accepted
time: 0ms
memory: 22016kb

input:

1 10
1 1 345
1 1 335
1 1 325
1 1 200
1 1 500
1 1 345
1 1 335
1 1 325
1 1 600
1 1 500

output:

200

result:

ok answer is '200'

Test #8:

score: 0
Accepted
time: 0ms
memory: 32516kb

input:

15 15
1 1 1
1 2 1
1 3 1
1 4 1
1 5 1
1 6 1
1 7 1
1 8 1
1 9 1
1 10 1
1 11 1
1 12 1
1 13 1
1 14 1
1 15 1

output:

15

result:

ok answer is '15'

Test #9:

score: 0
Accepted
time: 750ms
memory: 68928kb

input:

15 100
1 1 1
1 2 1
1 3 1
1 4 1
1 5 1
1 6 1
1 7 1
1 8 1
1 9 1
1 10 1
1 11 1
1 12 1
1 13 1
1 14 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1 15 1
1...

output:

15

result:

ok answer is '15'

Test #10:

score: 0
Accepted
time: 176ms
memory: 119068kb

input:

15 100
1 1 1
1 2 1
1 3 1
1 4 1
1 5 1
1 6 1
1 7 1
1 8 1
1 9 1
1 10 1
1 11 1
1 12 1
1 13 1
1 14 1
1 15 1
15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1000
15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1000
15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1000
15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1000
15 1 2 3 4 5 6 7 8 9 ...

output:

15

result:

ok answer is '15'

Test #11:

score: -100
Time Limit Exceeded

input:

18 100
1 1 1
1 2 1
1 3 1
1 4 1
1 5 1
1 6 1
1 7 1
1 8 1
1 9 1
1 10 1
1 11 1
1 12 1
1 13 1
1 14 1
1 15 1
1 16 1
1 17 1
1 18 1
18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1000
18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1000
18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1000
18 1 2 3 4 5 6 7 ...

output:


result: