CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono (String)
Sender:pingumies779
Submission time:2021-10-10 10:29:07
Language: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.02 sdetails
#70.02 sdetails
#80.02 sdetails
#90.02 sdetails
#100.03 sdetails
#110.03 sdetails
#120.03 sdetails
#130.05 sdetails
#140.13 sdetails
#150.42 sdetails
#16--details

Code

number = int(input())
string_list = ["a"]
x = 1
y = 0
output = ""
aakkoset = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "å", "ä", "ö"]
while x <= number:
    y = 0
    list_len = len(string_list)*2+1
    while y < list_len:
        string_list.insert(y, aakkoset[x])
        y += 2
    x += 1
for i in string_list:
    output += i
print(output)

Test details

Test 1

Verdict:

input
1

correct output
a

user output
bab

Test 2

Verdict:

input
2

correct output
bab

user output
cbcacbc

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
dcdbdcdadcdbdcd

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
edecedebedecedeaedecedebedeced...

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
fefdfefcfefdfefbfefdfefcfefdfe...

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
hghfhghehghfhghdhghfhghehghfhg...

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
ihigihifihigihieihigihifihigih...

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
jijhjijgjijhjijfjijhjijgjijhji...

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
lkljlklilkljlklhlkljlklilkljlk...

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
onomonolonomonokonomonolonomon...

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
popnpopmpopnpoplpopnpopmpopnpo...

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
(empty)