CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:eaittok
Submission time:2021-10-05 20:22:22 +0300
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.10 sdetails
#20.10 sdetails
#30.10 sdetails
#40.10 sdetails
#50.11 sdetails
#60.10 sdetails
#70.10 sdetails
#80.10 sdetails
#90.10 sdetails
#100.10 sdetails
#110.10 sdetails
#120.11 sdetails
#130.12 sdetails
#140.12 sdetails
#150.12 sdetails
#160.13 sdetails

Code

import string
def s(n, middle_index):
    if n == 1:
        return str(middle_index)
    return s(n-1, middle_index+1)+str(middle_index)+s(n-1, middle_index+1)
def conv(s):
    letters = string.ascii_lowercase
    return "".join([letters[int(i)] for i in s])
print(conv(s(int(input()), 0)))
if __name__ == "__main__":
    for i in range(1, 16):
        print(conv(s(i, 0)))

Test details

Test 1

Verdict:

input
1

correct output
a

user output
a
a
bab
cbcacbc
dcdbdcdadcdbdcd
...
Truncated

Test 2

Verdict:

input
2

correct output
bab

user output
bab
a
bab
cbcacbc
dcdbdcdadcdbdcd
...
Truncated

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
cbcacbc
a
bab
cbcacbc
dcdbdcdadcdbdcd
...
Truncated

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
dcdbdcdadcdbdcd
a
bab
cbcacbc
dcdbdcdadcdbdcd
...
Truncated

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
edecedebedecedeaedecedebedeced...
Truncated

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
fefdfefcfefdfefbfefdfefcfefdfe...
Truncated

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
gfgegfgdgfgegfgcgfgegfgdgfgegf...
Truncated

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
hghfhghehghfhghdhghfhghehghfhg...
Truncated

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
ihigihifihigihieihigihifihigih...
Truncated

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
jijhjijgjijhjijfjijhjijgjijhji...
Truncated

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
bajbaibajbahbajbaibajbagbajbai...
Truncated

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
bbbabbjbbbabbibbbabbjbbbabbhbb...
Truncated

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
bcbbbcbabcbbbcjbcbbbcbabcbbbci...
Truncated

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
bdbcbdbbbdbcbdbabdbcbdbbbdbcbd...
Truncated

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
bebdbebcbebdbebbbebdbebcbebdbe...
Truncated

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
bfbebfbdbfbebfbcbfbebfbdbfbebf...
Truncated