QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#52913#4237. Word LadderHuangHanShengAC ✓14ms3972kbC++2.1kb2022-10-04 16:08:512022-10-04 16:08:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 3860kb

input:

5

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba

result:

ok good solution

Test #2:

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

input:

3

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb

result:

ok good solution

Test #3:

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

input:

4

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb

result:

ok good solution

Test #4:

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

input:

6

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca

result:

ok good solution

Test #5:

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

input:

7

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca

result:

ok good solution

Test #6:

score: 0
Accepted
time: 3ms
memory: 3904kb

input:

8

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb

result:

ok good solution

Test #7:

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

input:

9

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb

result:

ok good solution

Test #8:

score: 0
Accepted
time: 3ms
memory: 3820kb

input:

10

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb

result:

ok good solution

Test #9:

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

input:

64

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #10:

score: 0
Accepted
time: 3ms
memory: 3972kb

input:

51

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #11:

score: 0
Accepted
time: 6ms
memory: 3896kb

input:

97

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #12:

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

input:

100

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #13:

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

input:

1000

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #14:

score: 0
Accepted
time: 6ms
memory: 3764kb

input:

1001

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #15:

score: 0
Accepted
time: 7ms
memory: 3940kb

input:

1024

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #16:

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

input:

1025

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #17:

score: 0
Accepted
time: 3ms
memory: 3972kb

input:

5000

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #18:

score: 0
Accepted
time: 9ms
memory: 3832kb

input:

4999

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #19:

score: 0
Accepted
time: 3ms
memory: 3936kb

input:

4096

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #20:

score: 0
Accepted
time: 6ms
memory: 3836kb

input:

4097

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #21:

score: 0
Accepted
time: 14ms
memory: 3936kb

input:

4098

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution

Test #22:

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

input:

3751

output:

aaaaaaaaaa
aaaaaaaaab
aaaaaaaabb
aaaaaaabbb
aaaaaaabba
aaaaaaabca
aaaaaaacca
aaaaaaaccb
aaaaaaacdb
aaaaaaaddb
aaaaaaadda
aaaaaaadea
aaaaaaaeea
aaaaaaaeeb
aaaaaaaefb
aaaaaaaffb
aaaaaaaffa
aaaaaaafga
aaaaaaagga
aaaaaaaggb
aaaaaaaghb
aaaaaaahhb
aaaaaaahha
aaaaaaahia
aaaaaaaiia
aaaaaaaiib
aaaaaaaijb
aaa...

result:

ok good solution