QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#413447#1286. Ternary String CountingZhaoZiLongWA 0ms3536kbC++203.5kb2024-05-17 16:15:262024-05-17 16:15:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0ms
memory: 3516kb

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
47952
0
15
0
11280
0
0
2256
2916
288
17604
14274
0
0
108
0
0
0
0
108
6
2052
162
18
0
306
420
342
6
0
486
0
2916
0
324
0
144
0
0
1854
2916
114
0
0
0
0
5832
0
0
24
3564
324
8748
432
6
0
6
0
0
5508
66
0
12
60
0
180
144
2862
0
0
18
9780
0
0
0
4824
0
3564
546
120
486
8712
6
6
3
0
54
162
0
84
0
0...

result:

wrong answer 5th words differ - expected: '24300', found: '47952'