QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#659498#8234. Period of a Stringucup-team3232WA 37ms5572kbC++142.3kb2024-10-19 20:26:102024-10-19 20:26:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

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: 37ms
memory: 5572kb

input:

100
147
ababbbaaaaaababbbbbaabaabbbbaaaababbbbababaabbbbaaabbabaaaaaabbbbaabbaaaaaababbbaabbabbaaabbbaabbbabaabbbbaabaabbaa
aaaaabbbbababababbbaaaaaabaaaaabbaabaabaaababbabbabbabbaabbaaabbaabbaabaababaaabbababbbbbaabaaaaabbbbaabbbbbbaaabbbbabaababbbbb
ababbabaababbbbaabbbbaaabbabaabbaaaababbbabbaaab...

output:

NO
YES
NO
YES
YES
NO
YES
NO
NO
YES
YES
NO
YES
YES
YES
NO
NO
YES
YES
NO
NO
YES
YES
YES
NO
YES
YES
NO
YES
YES
a
a
aa
aaaa
aaa
a
aaaaaaaa
aaaa
aaaaaaaaaa
a
aaaaa
aa
a
aaaaaaaaaaaaaaaaa
aaaa
aa
aa
aaaa
aaaaaaaaaaaaa
aaaaa
aaaaaaaaaaaa
aaaaaa
aaaaaaaaa
aaa
a
aaaaaa
aaaaaaa
a
aa
aa
a
aaaaa
aaa
aaaaaaa
aaa...

result:

wrong answer Token "NO" doesn't correspond to pattern "[a-z]{1,5000000}" (test case 2)