QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#537298#3060. Cumulative CodeqiuzxWA 1ms3800kbC++201.8kb2024-08-30 09:29:422024-08-30 09:29:43

詳細信息

Test #1:

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

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: 3532kb

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: 3796kb

input:

7 1
1 1 125

output:

4031

result:

ok single line: '4031'

Test #4:

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

input:

2 1
1 1 1

output:

1

result:

ok single line: '1'

Test #5:

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

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: 1ms
memory: 3612kb

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: 3800kb

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:

11 9 3

result:

wrong answer 1st lines differ - expected: '14', found: '11 9 3'