QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#604142#8234. Period of a Stringucup-team4951WA 31ms15996kbC++143.0kb2024-10-01 23:47:372024-10-01 23:47:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
2
abc
abcd
4
bbcaa
cabb
acabbbb
a
3
ab
aab
bbaaaaab
3
ab
aab
bbaaaaaa

output:

NO
YES
abbca
abbc
abbcabb
a
YES
ab
aba
abaabaab
NO

result:

ok ok (4 test cases)

Test #2:

score: 0
Accepted
time: 0ms
memory: 14424kb

input:

5
1
ccecddbdbbcbbaded
3
cd
d
d
1
dcedec
2
dcec
cce
8
a
e
a
c
cc
cccccccc
c
b

output:

YES
abbbbbccccdddddee
YES
dc
d
d
YES
ccddee
YES
cced
cce
NO

result:

ok ok (5 test cases)

Test #3:

score: -100
Wrong Answer
time: 31ms
memory: 15996kb

input:

100
147
ababbbaaaaaababbbbbaabaabbbbaaaababbbbababaabbbbaaabbabaaaaaabbbbaabbaaaaaababbbaabbabbaaabbbaabbbabaabbbbaabaabbaa
aaaaabbbbababababbbaaaaaabaaaaabbaabaabaaababbabbabbabbaabbaaabbaabbaabaababaaabbababbbbbaabaaaaabbbbaabbbbbbaaabbbbabaababbbbb
ababbabaababbbbaabbbbaaabbabaabbaaaababbbabbaaab...

output:

NO
cao
NO
NO
NO
NO
NO
YES
bbbbaaaaabbbbbbbbb
bb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bb
bbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbb
bbbbbbbbbbbb
bbbbbb
bbbbb
bbbbbbbbbb
bbb
bbb
b
bbbbbbbbbbbbbbbbb
bbbb
bbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbb
b
bbb
bbbbbbbbbbbbbbbbb
bbbbbb
bbbbb
bbbbbbbbbbb...

result:

wrong answer Expected yes/no (test case 2)