CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono (String)
Sender:Og3
Submission time:2021-10-05 11:34:06
Language:PyPy3
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.04 sdetails
#2ACCEPTED0.04 sdetails
#3ACCEPTED0.04 sdetails
#4ACCEPTED0.04 sdetails
#5ACCEPTED0.04 sdetails
#6ACCEPTED0.04 sdetails
#7ACCEPTED0.04 sdetails
#8ACCEPTED0.04 sdetails
#9ACCEPTED0.04 sdetails
#10ACCEPTED0.04 sdetails
#11ACCEPTED0.04 sdetails
#12ACCEPTED0.04 sdetails
#13ACCEPTED0.05 sdetails
#14ACCEPTED0.06 sdetails
#15ACCEPTED0.08 sdetails
#16ACCEPTED0.19 sdetails

Code

x = int(input())

lista = ["a"]




if x>1:
    b=0
    for i in range (2):
        lista.insert(b, "b")
        b+=2

if x>2:
    c=0
    for i in range (4):
        lista.insert(c, "c")
        c+=2
if x>3:
    d=0
    for i in range (8):
        lista.insert(d, "d")
        d+=2
if x>4:
    e=0
    for i in range (16):
        lista.insert(e, "e")
        e+=2
if x>5:
    f=0
    for i in range (32):
        lista.insert(f, "f")
        f+=2
if x>6:
    g=0
    for i in range (64):
        lista.insert(g, "g")
        g+=2
if x>7:
    h=0
    for i in range (128):
        lista.insert(h, "h")
        h+=2
if x>8:
    i=0
    for k in range (256):
        lista.insert(i, "i")
        i+=2
if x>9:
    j=0
    for i in range (512):
        lista.insert(j, "j")
        j+=2
if x>10:
    k=0
    for i in range (2**10):
        lista.insert(k, "k")
        k+=2
if x>11:
    l=0
    for i in range (2**11):
        lista.insert(l, "l")
        l+=2
if x>12:
    m=0
    for i in range (2**12):
        lista.insert(m, "m")
        m+=2

if x>13:
    n=0
    for i in range (2**13):
        lista.insert(n, "n")
        n+=2

if x>14:
    o=0
    for i in range (2**14):
        lista.insert(o, "o")
        o+=2

if x>15:
    p=0
    for i in range (2**15):
        lista.insert(p, "p")
        p+=2


print(''.join(lista))

Test details

Test 1

Verdict: ACCEPTED

input
1

correct output
a

user output
a

Test 2

Verdict: ACCEPTED

input
2

correct output
bab

user output
bab

Test 3

Verdict: ACCEPTED

input
3

correct output
cbcacbc

user output
cbcacbc

Test 4

Verdict: ACCEPTED

input
4

correct output
dcdbdcdadcdbdcd

user output
dcdbdcdadcdbdcd

Test 5

Verdict: ACCEPTED

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
edecedebedecedeaedecedebedeced...

Test 6

Verdict: ACCEPTED

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
fefdfefcfefdfefbfefdfefcfefdfe...

Test 7

Verdict: ACCEPTED

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

Test 8

Verdict: ACCEPTED

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
hghfhghehghfhghdhghfhghehghfhg...

Test 9

Verdict: ACCEPTED

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
ihigihifihigihieihigihifihigih...

Test 10

Verdict: ACCEPTED

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
jijhjijgjijhjijfjijhjijgjijhji...

Test 11

Verdict: ACCEPTED

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

Test 12

Verdict: ACCEPTED

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
lkljlklilkljlklhlkljlklilkljlk...

Test 13

Verdict: ACCEPTED

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

Test 14

Verdict: ACCEPTED

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

Test 15

Verdict: ACCEPTED

input
15

correct output
onomonolonomonokonomonolonomon...

user output
onomonolonomonokonomonolonomon...

Test 16

Verdict: ACCEPTED

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
popnpopmpopnpoplpopnpopmpopnpo...