QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#42288#169. Donut DecorationGuanYunchangRE 2ms3740kbC++111.8kb2022-08-01 20:54:032022-08-01 20:54:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3680kb

input:

3 2
3
1 2 1
2 3 2
3 3 1

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3740kb

input:

5 3
6
2 3 1
1 3 2
4 5 1
2 4 3
3 5 2
5 5 3

output:

2

result:

ok single line: '2'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3728kb

input:

10 1
2
2 9 1
5 7 1

output:

5

result:

ok single line: '5'

Test #4:

score: -100
Runtime Error

input:

100 335
500
6 99 1
6 96 2
3 49 327
3 67 3
14 93 4
22 55 5
56 98 5
3 71 6
4 49 49
5 11 59
19 76 7
29 100 8
19 98 9
47 86 10
57 80 11
38 50 37
4 36 229
17 56 11
12 74 12
10 96 13
22 39 181
27 36 279
4 97 14
46 62 15
75 89 23
86 89 168
51 61 16
63 75 15
62 99 16
18 64 17
36 82 18
58 94 19
28 52 75
14 4...

output:


result: