QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#60361#162. Merges and AcquisitionsZhangYiDeAC ✓2ms3488kbC++171.4kb2022-11-03 23:14:102022-11-03 23:14:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3428kb

input:

acmicpc
tsukuba

output:

No

result:

ok single line: 'No'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3432kb

input:

hoge
moen

output:

Yes

result:

ok single line: 'Yes'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3316kb

input:

abcdefg
xacxegx

output:

Yes

result:

ok single line: 'Yes'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

bbaaabba
bababaaa

output:

Yes

result:

ok single line: 'Yes'

Test #5:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

abbbabbbaaaabaabbaaab
babaaabbbababbbbbbbba

output:

No

result:

ok single line: 'No'

Test #6:

score: 0
Accepted
time: 2ms
memory: 3272kb

input:

aaaab
abccb

output:

No

result:

ok single line: 'No'

Test #7:

score: 0
Accepted
time: 2ms
memory: 3340kb

input:

cbcbcaccbabaabaab
bbbbbaaabcbabcacc

output:

No

result:

ok single line: 'No'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3268kb

input:

cbabdbdbdbaabcc
bccabcabcaabdcd

output:

No

result:

ok single line: 'No'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3480kb

input:

bbacbacbacbb
bbbcacdddcdd

output:

No

result:

ok single line: 'No'

Test #10:

score: 0
Accepted
time: 2ms
memory: 3272kb

input:

ccbedcdceeddbbebbcbeeddd
ecdceeedeeadaacdacddaabb

output:

No

result:

ok single line: 'No'

Test #11:

score: 0
Accepted
time: 2ms
memory: 3476kb

input:

bccbebbbebdcdaebb
bacdacddaebdcacad

output:

No

result:

ok single line: 'No'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3480kb

input:

abfcedbacefaafc
bccabfacbbbffcf

output:

No

result:

ok single line: 'No'

Test #13:

score: 0
Accepted
time: 2ms
memory: 3472kb

input:

d
d

output:

Yes

result:

ok single line: 'Yes'

Test #14:

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

input:

cbegeccgfedcag
addgbggaacbbdg

output:

No

result:

ok single line: 'No'

Test #15:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

ebefgdcgecadecffbccdeg
fccggegafdecfegffdaefc

output:

No

result:

ok single line: 'No'

Test #16:

score: 0
Accepted
time: 2ms
memory: 3320kb

input:

dcd
heh

output:

No

result:

ok single line: 'No'

Test #17:

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

input:

agddff
cdfbbd

output:

No

result:

ok single line: 'No'

Test #18:

score: 0
Accepted
time: 2ms
memory: 3432kb

input:

ehbbfdieaie
dchigebgiea

output:

No

result:

ok single line: 'No'

Test #19:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

dbfahbhdgcifcihaabghcfica
ddhbcddgeedfgaihadecaddcb

output:

No

result:

ok single line: 'No'

Test #20:

score: 0
Accepted
time: 2ms
memory: 3384kb

input:

cbfhhceadcdiahiighihbaebefegh
dacdhhgjijjbdhjgggigbgbcjiabd

output:

No

result:

ok single line: 'No'

Test #21:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

fbaiejbcia
ggfefdifcg

output:

No

result:

ok single line: 'No'

Test #22:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

ibeifkbggcffahcabcgikfccad
kkkiaackbcgcjddigkkcgkjkfd

output:

No

result:

ok single line: 'No'

Test #23:

score: 0
Accepted
time: 2ms
memory: 3428kb

input:

fgfdhf
agibke

output:

No

result:

ok single line: 'No'

Test #24:

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

input:

bbbbbaabbabbaabbabbbbaaabbbbbbaabaabaaabbabbababaaaababaabbbaaababbbbaaabbbbbaabaabbaaaababbbaaaababbaaabbbbbbbababbaabbaababbbaaaaabbbbaaaabaabaabaaaaaabbaabaabbaabbaabaabaababbbabbaaaaabababbbbbaaaabbbbaabaabbbababbbbbabaababaabaaaabbbbabaabbbabbababbabbaabaaabbaabababbaabaabaababbbabbabbbabbbbbab...

output:

No

result:

ok single line: 'No'

Test #25:

score: 0
Accepted
time: 2ms
memory: 3300kb

input:

bbbabbbaaabaabaabbabbabaababbbaaabbbbaabababbaabbbaaaabbabababbbbbbaabaaababbaaaaabbbaaabbaabbbbbbabbaabaabbaaabababbabaaaaaabaaaababbbaabbabbaaaabbaaababbababbaabaaabbbaabbbaabbabaaaaababaabaabaaaabbbabaaaaaaabababaaaaabbababbaababbabaabaabaaabaaaabbaaabaababbaaaabbbbbbbbbbbabbbbbbbabbbbaabaaabaabb...

output:

Yes

result:

ok single line: 'Yes'

Test #26:

score: 0
Accepted
time: 2ms
memory: 3384kb

input:

abaababbabbbabbaaaaabbaabbbbaabbbabbaaaaaabaaaaaabaabbbbaaaaaabbabbaaaaaabbabaabbbaababaaababbabbbabbabaaaababbaabaababaaabaaabbaaababaabbbbbaabbababbabbababbbbaababaaaaababababbaaaaabbaaabbaabbaaabbbaaabaaabaaabbbbbbbbabaaabbbbaabbbbaabbbbaababbbbbbabaaababbaaaabbbbbabbbbabbababbaaabbbaaababaaabbaa...

output:

Yes

result:

ok single line: 'Yes'

Test #27:

score: 0
Accepted
time: 2ms
memory: 3324kb

input:

aaaabbaabababababbabbaabbbbaabbbbaaabbbaababbaabaabaaababaabbbaaabaaaaabbaaabababbbbababbabaaaaaabbbababbbbbbbbbbbaaabaabbabaabbabbaaaaabbaaabbabbaaabbbabbbaabaabaabbaababaabbbbaabbbbabaaabbbbaaabaababaabbaaaabbababaabbbbbbbabbababbaabbbaaababbbbbaabbbbbaaabaaabaaabbaabbaababbbababbaaabababaabbabbaa...

output:

Yes

result:

ok single line: 'Yes'

Test #28:

score: 0
Accepted
time: 2ms
memory: 3472kb

input:

bbbbabbaabbaababbabbabbbbbabbaaabbbbabbaabaaababbbabbbaabaabbbbbaababaabbaaababbababbaaaabaaabbabbbaabaaaabbababaababbbabaaaabaabbababaaaaababaaabbababababababaabaabbabbbbbbaaabbaabbababbababaabaaaaababbbabbbababababbaabbaaababbaaaaaaabaababbbbaaabababbaaabbbbbbbbabaabbabbbbaaaaaaabbababaababbbabbbb...

output:

Yes

result:

ok single line: 'Yes'

Test #29:

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

input:

abaaaabbbbbbaabbabbbbbabbabbaaaabaaaabaaaaaaaabbbbabaabaaabbaabbbabababaaabaabbabbbabbbabbaaabbbabaaaaabababbbbbbbaabbabaabaabbabaaaabbbbbabaabaaaabaabbaabbbbaabaabbabbababaabaabbbbaaaaaaabbbaabaabaababbbbababbbabbbabaaabbabbaaaaaabbababbbabaaaabaabaaabbbaababaaababababaabbabbaabbbbababbbaaabbbbbaaa...

output:

Yes

result:

ok single line: 'Yes'

Test #30:

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

input:

bbaaaabaababaabbababaabbbabbaaaaaaabaabbabbabaaaaaaaabaaaabbbaaaaabaaaabbbbbbabaabbbaabbbbbababbaaabaababaabbabbababaaabaaaabaabaabbabbababbbaaabaaaabbaaaaaaaabaaabaabaababaaabbaababaababbaababbabbbbbbaababaaabbababaaababbababbaaabababbbaaabbabbabbaabaababbbbabababababbbaabaababbabaaabaaaabbaababbab...

output:

Yes

result:

ok single line: 'Yes'

Test #31:

score: 0
Accepted
time: 2ms
memory: 3428kb

input:

abbababbababaaababbabbbaabbabbbbababaabaabbaaaaabaaabaabbabbbbbbababbabaaaaaabaaabbbbbabbbabaabbaabbabaabbabaabbbbaaaaaaaaabbabbaaabbbababaaaaabbabaaabbabbabaabbbbaababaaababbaababbbbbbabaaabbbabbbbbbbabaaababbbbaaababbaababbbaaaabbababaabbabbbabbbabaaaaabbbbabababaabbababaaaabbabbabbaabaabbabbbbaaa...

output:

Yes

result:

ok single line: 'Yes'

Test #32:

score: 0
Accepted
time: 1ms
memory: 3324kb

input:

aabaaabaabaababaababbabaaaababbbaabbabbabaaabababaaabaaaaaaaaaabbabaabbbaaababbaaaabaaababbabaaaabababbbaaaaaaabbbaaaaabababaabaaaabbbababbbbbabbababbbbbaabaaabbabbaabaaabbabbababaabaabaabbbabbbabbbaaabbbabbababbbabbabbbaaababaabbabaabbaaaaabbaaabbbaaabbaaaaaaaabbaabaababaabbabbbaabbbaaaaaababbaaaba...

output:

Yes

result:

ok single line: 'Yes'

Test #33:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

baaaabbababaabaabababbbaaaaabaabbbabbaaaabababbabbbbaaaaabbbbababbbababaabbbabbbabaaaaabbbbbabbbbabbbabbbaaaabbaabbbaaaaabbbbababbbabbbbaaabbbaaaababaabaabaaababbbbabbabbaaaaaaaaaabaababbabbabbbbbbbbbbabbaabaaabaabaaaababbabaabaaabbbbbaabbaaaaababbbababaaabbbbaaabaaabaabaaabaabaaaaaaaaabaaabbabaabab...

output:

Yes

result:

ok single line: 'Yes'

Test #34:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

bbbabbbbabaabbabbbbbbbabaaabbabbbbabbabbbaabaaabbabbaabbaaaaaaabaabbbbaabbaabaaabbbabaaabbbabbaaaabbbababaabaaabbbbabaaabaabbaaabbabaabaabbaaabaababbaabaaababaababbaaaaabaaabaaaabbaabaabaabaaabbaabbaabbaaabbbbbbbaababaabbbabababaaaaabbaabbbbbaaabaabbbbbabbaaaabbabaabbbabaaaaaabbbaaababbabbababbababb...

output:

No

result:

ok single line: 'No'

Test #35:

score: 0
Accepted
time: 2ms
memory: 3448kb

input:

wbcdugsigbadgwdjcnznraospkxxjtkbratqjyupbkhzsccsfpmmlzjfwzybbwlwlzxzftnfjnzjkuuypxbzizfbjwfpriboezxebcrqkufavpvuitlwzrriqyuijtyggvqrrrugybqgrkmymqsohyugnrunqqwmcmxljvcyrmqxvjxixlfvjvffqtwqnubytbafwrxipedrjjqzxdwdgmfltisbghorrcoguarlsqqvhnptgwaapiatqqumjtygqnmhmuyezlpawpzkkzecjspopwsbczuwjtoalvvvbovh...

output:

No

result:

ok single line: 'No'

Test #36:

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

input:

ababbabbbabbbbaaabbabababbaaabbababbaabbaaababbbbaaabababbbbaabbbbabababbbabababbbbaaaaaaaaaabaabaabbabaaabaaaaabbbbabaaabaabbbbbabaaaabaaaaabaabbbabaabaaaaabbbbbbababbaabbabaaaaabababbbababbaaabbbbababbabbabbabaabbaabbbaabbbaabaababbaabbbabbababaaaabaabaabbaaabababaaabbaaaaabbaabababbbaabbbabbaabba...

output:

No

result:

ok single line: 'No'

Test #37:

score: 0
Accepted
time: 2ms
memory: 3448kb

input:

abbaaaabbbaaaaaabbbbaaaaaabbbbbbabbaaaaaabbabaaabbaaaabbaaaabbabbabaaaaaaabaaaababbbabaaaababaaaaabbaaaabaaaababbaabbabbbaabaabbabbbabbaaabababbaababaaaabbabbaabbaabbbaaaaaabaabaaabbabaaabaaaabaababbbaaaababbabbaabbaabababbbbbaaaabbabaaaaababbbbbabbbaaaaabbaaaabbbbbbaabbbbaaaabbaabbbbabbaaabbabbbaaa...

output:

Yes

result:

ok single line: 'Yes'

Test #38:

score: 0
Accepted
time: 2ms
memory: 3488kb

input:

aaaaaaabbbbababbbaaaababaababbaaababbabbbabaaaabbababbaababbbbabbbaabbababaaaaaaaaababaabbbbaabaabbbaabaaabababbbaabaabbaabababababbbbbabbaabbbabbaababbbbaaababbbbbaaabaabaabaabaaabaabbaaaaaabbbabaaababaabbabaaaaaaaaaaababbbababbbaababbbbbaabbaaabbaaaaaababaababaabbababbbabbbabbabaaababbaaaaabaababb...

output:

Yes

result:

ok single line: 'Yes'

Test #39:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

bbabbbbababbbbbabaabaaababbabbbbbbbbaaababbaabaaabbabbabbaaaaaabbaaaaabaabbababbbbbabababbbbbbbabbababaababbaaaabaaabababbaaababbbabababababaabaaababababaabaabbaaaabaababbababbbaabbbababaababbabaaabbaabaababaabaaaababbaaaaabaaabbabbaaaaabaaabbabaaabaababaaaaababbbabaaabbbaaaabbbbbbbabbababbaabaabaaa...

output:

Yes

result:

ok single line: 'Yes'

Test #40:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

stststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststst...

output:

Yes

result:

ok single line: 'Yes'

Test #41:

score: 0
Accepted
time: 2ms
memory: 3320kb

input:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

Yes

result:

ok single line: 'Yes'

Test #42:

score: 0
Accepted
time: 2ms
memory: 3484kb

input:

tstststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststststs...

output:

Yes

result:

ok single line: 'Yes'

Test #43:

score: 0
Accepted
time: 2ms
memory: 3360kb

input:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
tststststststststststststststststststststststststststststststststststststststststststststststststststststs...

output:

Yes

result:

ok single line: 'Yes'

Test #44:

score: 0
Accepted
time: 1ms
memory: 3320kb

input:

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...

output:

Yes

result:

ok single line: 'Yes'

Test #45:

score: 0
Accepted
time: 1ms
memory: 3320kb

input:

m
a

output:

Yes

result:

ok single line: 'Yes'

Test #46:

score: 0
Accepted
time: 2ms
memory: 3296kb

input:

abab
aaaa

output:

Yes

result:

ok single line: 'Yes'

Test #47:

score: 0
Accepted
time: 1ms
memory: 3432kb

input:

abab
bbbb

output:

Yes

result:

ok single line: 'Yes'