QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#232606#1286. Ternary String CountingGuanYunchangWA 1ms3956kbC++172.6kb2023-10-30 17:29:472023-10-30 17:29:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3692kb

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

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:

90
0
0
0
24300
0
3
0
1707
0
0
972
2925
9
6579
1413
0
0
18
0
0
0
0
0
9
0
3
0
0
0
96
9
6
0
3
9
4383
0
9
0
189
0
0
0
2916
0
0
0
0
0
0
3
0
0
810
324
8748
54
0
0
0
0
0
4320
0
0
0
33
21
0
0
0
0
0
3
108
0
0
3
2400
0
0
450
0
162
1845
3
0
3
0
3
54
9
18
0
0
162
0
1305
0
2034
324
0
0
45
45
0
0
60
9
63
0
0
0
0
...

result:

wrong answer 7th words differ - expected: '0', found: '3'