CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:eaittok
Submission time:2021-10-05 20:21:25 +0300
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.09 sdetails
#20.09 sdetails
#30.09 sdetails
#40.09 sdetails
#50.09 sdetails
#60.10 sdetails
#70.09 sdetails
#80.10 sdetails
#90.09 sdetails
#100.09 sdetails
#110.09 sdetails
#120.09 sdetails
#130.09 sdetails
#140.10 sdetails
#150.09 sdetails
#160.10 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])
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
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 2

Verdict:

input
2

correct output
bab

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
a
bab
cbcacbc
dcdbdcdadcdbdcd
edecedebedecedeaedecedebedeced...
Truncated