CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:Theelevinr
Submission time:2021-10-14 09:25:11 +0300
Language:Python3 (CPython3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails
#40.02 sdetails
#50.02 sdetails
#60.03 sdetails
#70.02 sdetails
#80.02 sdetails
#90.02 sdetails
#100.02 sdetails
#110.02 sdetails
#120.02 sdetails
#130.03 sdetails
#140.03 sdetails
#150.03 sdetails
#160.04 sdetails

Code

def create_string(n):
    characters = "abcdefghijklmnopqrstuvwxyz"
    final_string = ""
    if n != 1:
        string = create_string(n-1)
        for i in string:
            final_string += characters[n-1]
            final_string += i
        final_string += characters[n-1]
        return final_string
    else:
        return "a"


while True:
    n = int(input())
    print(create_string(n))

Test details

Test 1

Verdict:

input
1

correct output
a

user output
a

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 2

Verdict:

input
2

correct output
bab

user output
bab

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
cbcacbc

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
dcdbdcdadcdbdcd

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
edecedebedecedeaedecedebedeced...

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
fefdfefcfefdfefbfefdfefcfefdfe...

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
gfgegfgdgfgegfgcgfgegfgdgfgegf...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
hghfhghehghfhghdhghfhghehghfhg...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
ihigihifihigihieihigihifihigih...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
jijhjijgjijhjijfjijhjijgjijhji...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
kjkikjkhkjkikjkgkjkikjkhkjkikj...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
lkljlklilkljlklhlkljlklilkljlk...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
onomonolonomonokonomonolonomon...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
popnpopmpopnpoplpopnpopmpopnpo...
Truncated

Error:
Traceback (most recent call last):
  File "input/code.py", line 16, in <module>
    n = in...