QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#537297#3060. Cumulative CodeqiuzxWA 0ms3844kbC++201.8kb2024-08-30 09:27:552024-08-30 09:27:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

2
2
1
3
3

result:

ok 5 lines

Test #2:

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

input:

4 4
2 1 5
4 4 3
4 8 1
10 3 2

output:

18
15
5
13

result:

ok 4 lines

Test #3:

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

input:

7 1
1 1 125

output:

4031

result:

ok single line: '4031'

Test #4:

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

input:

2 1
1 1 1

output:

1

result:

ok single line: '1'

Test #5:

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

input:

3 32
1 5 1
1 1 1
1 1 2
1 1 3
1 1 4
1 1 5
1 2 1
1 2 2
1 2 3
1 3 1
1 3 2
1 4 1
1 4 2
2 5 1
2 1 1
2 1 2
2 1 3
2 1 4
2 2 1
2 2 2
2 3 1
2 3 2
3 5 1
3 1 1
3 1 2
3 1 3
3 2 1
3 2 2
4 5 1
4 1 1
4 1 2
5 5 1

output:

2
2
4
5
8
11
2
3
6
2
5
2
5
2
2
3
6
9
2
5
2
5
1
1
4
7
1
4
3
3
6
3

result:

ok 32 lines

Test #6:

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

input:

4 282
1 13 1
1 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 2 1
1 2 2
1 2 3
1 2 4
1 2 5
1 2 6
1 2 7
1 3 1
1 3 2
1 3 3
1 3 4
1 3 5
1 4 1
1 4 2
1 4 3
1 4 4
1 5 1
1 5 2
1 5 3
1 6 1
1 6 2
1 6 3
1 7 1
1 7 2
1 8 1
1 8 2
1 9 1
1 9 2
1 10 1
1 10 2
1 11 1
1 11 2
1 12 1
1 ...

output:

4
4
8
10
15
20
22
23
26
32
38
41
48
55
4
6
11
12
18
21
28
4
9
10
16
23
4
9
15
22
4
6
9
4
5
12
4
7
4
10
4
10
4
7
4
11
4
11
4
4
6
11
16
18
19
22
28
34
37
44
51
4
9
11
14
20
27
4
9
12
15
4
6
12
4
5
12
4
7
4
10
4
10
4
7
4
11
4
11
2
2
7
12
14
15
18
24
30
33
40
47
2
7
8
14
17
24
2
4
10
17
2
3
6
2
5
12
2
8...

result:

ok 282 lines

Test #7:

score: -100
Wrong Answer
time: 0ms
memory: 3480kb

input:

5 268
26 16 1
10 26 1
13 22 1
3 6 2
19 3 4
20 15 1
25 5 1
15 10 1
1 23 2
13 19 1
8 1 8
20 22 1
9 18 1
27 21 1
8 11 2
23 14 1
25 10 1
19 9 2
15 21 1
9 5 2
11 25 1
12 16 2
11 8 3
15 6 1
9 25 1
20 19 1
2 15 1
28 18 1
7 4 1
4 24 2
12 2 7
20 1 5
7 3 5
26 3 2
16 3 4
15 1 7
6 1 3
2 1 25
12 2 6
4 2 12
21 1 ...

output:

14
5
5
14
41
13
14
1
15
5
55
13
10
7
16
3
14
21
1
12
11
26
24
1
10
13
8
15
2
24
54
42
21
29
29
60
16
194
47
96
57
166
95
89
171
125
21
21
122
76
36
112
44
9
71
104
87
18
96
32
21
12
133
89
98
15
19
56
26
52
14
27
46
34
51
47
5
36
26
72
15
65
25
42
29
14
35
33
41
16
56
18
17
17
22
72
18
32
32
111
46
...

result:

wrong answer 79th lines differ - expected: '39', found: '26'