QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#861102#9986. Shioriyosupo (Kohei Morita, Takuto Shigemura, Kento Nikaido)#WA 143ms3712kbC++2325.6kb2025-01-18 16:12:452025-01-18 16:12:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 8
0 7 2 1 0
1 2 4 0
2 1 3
2 3 4
3 1 3
1 2 3 4
3 1 4
2 1 5
3 2 5

output:

5
11
22

result:

ok 3 number(s): "5 11 22"

Test #2:

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

input:

1 1
0
1 1 1 0

output:


result:

ok 0 number(s): ""

Test #3:

score: -100
Wrong Answer
time: 143ms
memory: 3712kb

input:

10 500000
0 0 0 0 0 0 0 0 0 0
3 2 9
2 4 10
2 2 7
2 7 9
3 1 1
3 5 8
1 5 10 0
3 1 9
3 5 9
2 2 4
1 2 4 0
2 5 6
3 8 8
1 4 6 0
1 6 6 0
2 4 10
3 1 9
3 5 7
1 4 10 0
3 6 9
3 2 6
2 1 8
1 5 9 0
3 7 8
3 4 8
2 4 8
2 5 8
2 1 9
2 3 8
1 5 10 0
2 4 8
3 1 6
2 1 4
2 3 7
3 4 10
1 4 6 0
1 1 6 0
2 3 7
1 1 1 0
2 1 10
1 5...

output:

0
0
10
7
0
0
6
3
0
0
0
1
23
12
2
0
0
0
0
17
23
1
14
2
7
28
25
2
17
2
1
0
0
0
2
3
0
0
0
0
7
2
0
3
13
10
2
8
0
4
3
1
6
3
0
6
0
3
0
6
6
1
2
3
0
0
0
6
15
3
6
0
2
0
0
2
6
2
0
2
3
0
0
1
16
8
1
1
12
0
2
4
2
3
1
7
0
17
0
3
0
0
15
5
2
4
12
16
2
16
2
9
6
1
11
4
0
2
7
4
19
13
8
2
23
14
0
4
3
0
2
5
0
2
0
2
5
0
...

result:

wrong answer 13th numbers differ - expected: '25', found: '23'