QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#236303#1286. Ternary String CountingZhangYiDeWA 0ms3716kbC++172.7kb2023-11-03 20:19:322023-11-03 20:19:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 3716kb

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
3
3
3
46875
57
9
3
14925
3
3
2901
2925
561
24003
27255
3
3
3
3
3
3
9
93
3
3405
165
21
3
495
423
219
9
3
273
9
4089
3
3
3
195
3
3
705
2919
75
3
3
3
3
7347
3
3
3
7779
327
8751
489
9
3
3
3
3
3549
3
3
3
27
3
81
75
2109
3
3
9
31269
3
3
153
4827
3
2163
453
3
219
10899
3
3
3
3
33
165
3
111
3
3
5691
3
87...

result:

wrong answer 2nd words differ - expected: '0', found: '3'