QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#402877#1286. Ternary String CountingZ_301WA 4ms101708kbC++177.5kb2024-05-01 17:07:052024-05-01 17:07:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 101680kb

input:

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

output:

3
9
27
18

result:

ok 4 tokens

Test #2:

score: -100
Wrong Answer
time: 4ms
memory: 101708kb

input:

741
5 3
1 5 3
3 4 2
1 4 3
4 3
2 4 2
1 4 1
2 3 3
10 3
9 10 2
3 6 3
1 9 1
3 4
2 3 2
1 3 2
2 3 3
1 3 3
10 4
6 6 1
9 10 2
4 8 3
4 10 3
6 3
1 4 3
2 4 2
2 2 2
4 3
1 4 1
1 1 2
2 3 1
5 3
4 5 2
4 5 1
1 4 3
9 3
2 3 2
1 9 2
2 4 2
4 3
1 3 3
2 3 2
1 2 3
8 4
5 8 1
4 8 1
3 5 3
1 3 3
9 3
4 5 1
1 5 3
3 8 2
8 3
5 7 2...

output:

93
0
0
3
24300
27
0
0
1149
0
0
972
2925
9
6579
927
0
3
21
0
0
0
3
0
9
9
3
3
27
3
96
9
9
9
3
9
0
0
9
0
189
0
0
0
2916
0
0
0
0
0
3
3
0
0
189
324
8748
3
3
0
0
0
0
4320
3
0
9
27
21
3
0
0
0
0
3
27
3
0
3
1992
0
0
450
0
162
1845
3
3
0
3
3
57
9
27
0
0
3
0
1305
0
1899
324
0
0
45
45
0
0
69
9
63
21
0
0
0
27
0
...

result:

wrong answer 1st words differ - expected: '90', found: '93'