CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:Og3
Submission time:2021-10-05 11:11:08 +0300
Language:Python3 (PyPy3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
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.05 sdetails
#13ACCEPTED0.05 sdetails
#140.20 sdetails
#150.20 sdetails
#16ACCEPTED0.19 sdetails

Code

n = int(input())

lista = ["a"]




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

if n>2:
    c=0
    for i in range (4):
        lista.insert(c, "c")
        c+=2
if n>3:
    d=0
    for i in range (8):
        lista.insert(d, "d")
        d+=2
if n>4:
    e=0
    for i in range (16):
        lista.insert(e, "e")
        e+=2
if n>5:
    f=0
    for i in range (32):
        lista.insert(f, "f")
        f+=2
if n>6:
    g=0
    for i in range (64):
        lista.insert(g, "g")
        g+=2
if n>7:
    h=0
    for i in range (128):
        lista.insert(h, "h")
        h+=2
if n>8:
    i=0
    for k in range (256):
        lista.insert(i, "i")
        i+=2
if n>9:
    j=0
    for i in range (512):
        lista.insert(j, "j")
        j+=2
if n>10:
    k=0
    for i in range (2**10):
        lista.insert(k, "k")
        k+=2
if n>11:
    l=0
    for i in range (2**11):
        lista.insert(l, "l")
        l+=2
if n>12:
    m=0
    for i in range (2**12):
        lista.insert(m, "m")
        m+=2
if n>13:
    n=0
    for i in range (2**13):
        lista.insert(n, "n")
        n+=2
if n>14:
    o=0
    for k in range (2**14):
        lista.insert(o, "o")
        o+=2
if n>15:
    p=0
    for k 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...
Truncated

Test 8

Verdict: ACCEPTED

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
hghfhghehghfhghdhghfhghehghfhg...
Truncated

Test 9

Verdict: ACCEPTED

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
ihigihifihigihieihigihifihigih...
Truncated

Test 10

Verdict: ACCEPTED

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
jijhjijgjijhjijfjijhjijgjijhji...
Truncated

Test 11

Verdict: ACCEPTED

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
kjkikjkhkjkikjkgkjkikjkhkjkikj...
Truncated

Test 12

Verdict: ACCEPTED

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
lkljlklilkljlklhlkljlklilkljlk...
Truncated

Test 13

Verdict: ACCEPTED

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...
Truncated

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
popnpopmpopnpoplpopnpopmpopnpo...
Truncated

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
popnpopmpopnpoplpopnpopmpopnpo...
Truncated

Test 16

Verdict: ACCEPTED

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
popnpopmpopnpoplpopnpopmpopnpo...
Truncated