QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#740889#9716. Code a TrieAlterego#WA 0ms48824kbC++233.1kb2024-11-13 12:07:112024-11-13 12:07:12

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

6
2
aa 1
a 2
1
a 1
3
aa 1
ab 1
ac 1
2
aa 1
ac 2
3
aaa 1
ac 1
aa 3
3
aa 1
ac 1
a 3

output:

Case #1: 3
Case #2: 1
Case #3: 1
Case #4: 3
Case #5: -1
Case #6: -1

result:

ok 6 lines

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 48824kb

input:

873
1
sgaswyo 17974065
1
s 17974065
1
naa 17974065
3
m 17974065
yimyi 864021569
m 421852697
4
sawa 613320183
auqacuy 147847601
u 58500993
aesc 461860441
1
x 613320183
3
su 613320183
g 147847601
a 750104225
3
saic 589460253
i 147847601
s 3910501
1
ioqxgke 812288287
5
a 878568205
a 147847601
c 1474279...

output:

Case #1: 1
Case #2: 1
Case #3: 1
Case #4: -1
Case #5: 4
Case #6: 1
Case #7: 3
Case #8: 3
Case #9: 1
Case #10: -1
Case #11: 3
Case #12: -1
Case #13: 4
Case #14: 1
Case #15: 1
Case #16: 1
Case #17: 1
Case #18: 1
Case #19: 1
Case #20: 1
Case #21: 1
Case #22: 2
Case #23: 1
Case #24: 1
Case #25: 1
Case #...

result:

wrong answer 278th lines differ - expected: 'Case #278: 1', found: 'Case #278: -1'