QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#42791#4487. Kazuha's StringlarryzhongAC ✓27ms3792kbC++17891b2022-08-03 19:13:272022-08-03 19:13:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 27ms
memory: 3792kb

input:

175005
a
a
a
b
a
c
a
aa
a
ab
a
ac
a
ba
a
bb
a
bc
a
ca
a
cb
a
cc
a
aaa
a
aab
a
aac
a
aba
a
abb
a
abc
a
aca
a
acb
a
acc
a
baa
a
bab
a
bac
a
bba
a
bbb
a
bbc
a
bca
a
bcb
a
bcc
a
caa
a
cab
a
cac
a
cba
a
cbb
a
cbc
a
cca
a
ccb
a
ccc
a
aaaa
a
aaab
a
aaac
a
aaba
a
aabb
a
aabc
a
aaca
a
aacb
a
aacc
a
abaa
a
ab...

output:

yes
no
no
no
no
no
no
no
yes
no
no
no
yes
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
no
yes
no
no
no
no
no
no
no
yes
no
yes
no
no
no
yes
no
no
no
no
no
no
no
no
no
yes
no
no
no
no
no
no
no
no
no
yes
no
no
no
no
no
yes
no
no
no
no
no
no
no
no
no
no
no
ye...

result:

ok 175005 lines