QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#108098#1286. Ternary String CountingDianasDogWA 2ms3776kbC++2.7kb2023-05-23 16:12:202023-05-23 16:12:24

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3776kb

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: 2ms
memory: 3628kb

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
8748
0
24300
0
0
0
768
0
108
990
2916
162
6480
2592
0
0
189
0
0
0
0
27
9
1242
162
0
0
54
96
162
6
0
729
0
0
0
2187
0
108
0
0
1683
2916
15
0
54
0
0
972
6
0
3
0
486
8748
0
0
0
9
0
0
15435
3
0
27
18
0
9
0
63
0
0
0
774
0
0
0
1992
0
1053
18147
1755
243
1656
27
3
0
0
729
54
0
18
0
108
0
0
756
0
1620
...

result:

wrong answer 3rd words differ - expected: '0', found: '8748'