CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:Lizene
Submission time:2021-10-15 00:25:21
Language:PyPy3
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.22 sdetails
#20.22 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.05 sdetails
#150.05 sdetails
#160.09 sdetails

Code

n = int(input())
j = "a"
a = "bcdefghijklmnop"
for l in a:
    j2 = ""
    for x in j:
        j2 = j2 + l
        j2 = j2 + x
    j2 = j2 + l
    j = j2
    n -= 1
    if n == 2:
        break
print(j)
    
    

               

Test details

Test 1

Verdict:

input
1

correct output
a

user output
popnpopmpopnpoplpopnpopmpopnpo...

Test 2

Verdict:

input
2

correct output
bab

user output
popnpopmpopnpoplpopnpopmpopnpo...

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
bab

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
cbcacbc

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
dcdbdcdadcdbdcd

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
edecedebedecedeaedecedebedeced...

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
fefdfefcfefdfefbfefdfefcfefdfe...

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
hghfhghehghfhghdhghfhghehghfhg...

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
ihigihifihigihieihigihifihigih...

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
jijhjijgjijhjijfjijhjijgjijhji...

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
lkljlklilkljlklhlkljlklilkljlk...

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
onomonolonomonokonomonolonomon...