CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:WalkStalker
Submission time:2021-10-07 00:48:53 +0300
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.03 sdetails
#70.02 sdetails
#80.02 sdetails
#90.03 sdetails
#100.02 sdetails
#110.02 sdetails
#120.02 sdetails
#130.02 sdetails
#140.02 sdetails
#150.02 sdetails
#160.02 sdetails

Code

n = int(input())
string = 'a'
c = 0
for i in range(n-1):
    string = string.replace(chr(97 + c), chr(97 + c + 1) + chr(97 + c) + chr(97 + c + 1))
    c += 1
print(str)

Test details

Test 1

Verdict:

input
1

correct output
a

user output
<class 'str'>

Test 2

Verdict:

input
2

correct output
bab

user output
<class 'str'>

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
<class 'str'>

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
<class 'str'>

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
<class 'str'>

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
<class 'str'>

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
<class 'str'>

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
<class 'str'>

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
<class 'str'>

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
<class 'str'>

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
<class 'str'>

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
<class 'str'>

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
<class 'str'>

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
<class 'str'>

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
<class 'str'>

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
<class 'str'>