CSES - Datatähti 2024 alku - Results
Submission details
Task:Monistus
Sender:Lytsky
Submission time:2023-11-08 19:54:46 +0200
Language:Python3 (CPython3)
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
Test results
testverdicttimegroup
#10.02 s1, 2details
#20.02 s1, 2details
#30.02 s1, 2details
#40.02 s1, 2details
#50.02 s1, 2details
#60.02 s1, 2details
#70.02 s1, 2details
#8--2details
#9--2details
#10--2details
#11--2details
#12--2details
#13--2details
#14--2details

Code

mj = input('')
vastaus = mj

for key, merkki in enumerate(mj):
    if merkki.isdigit():
        vastaus = vastaus.replace(mj[key:key+1+int(merkki)], mj[key+1:key+1+int(merkki)]*2)
        print(mj[key:key+1+int(merkki)], mj[key+1:key+1+int(merkki)]*2)

print(vastaus)

Test details

Test 1

Group: 1, 2

Verdict:

input
987654321o987654321p

correct output
oooooooooooooooooooooooooooooo...

user output
987654321o 87654321o87654321o
87654321o 7654321o7654321o
7654321o 654321o654321o
654321o 5

...
Truncated

Test 2

Group: 1, 2

Verdict:

input
1e1o1zo1r1h1y1m1b1mn

correct output
eeoozzorrhhyymmbbmmn

user output
1e ee
1o oo
1z zz
1r rr
1h hh
...

Test 3

Group: 1, 2

Verdict:

input
h4y21n7dz6vr1p4go1ec

correct output
hynnnnynnnndzvrppdzvrppdzvrppg...

user output
4y21n y21ny21n
21n 1n1n
1n nn
7dz6vr1p dz6vr1pdz6vr1p
6vr1p4g vr1p4gvr1p4g
...
Truncated

Test 4

Group: 1, 2

Verdict:

input
bv2olah1h6o4f2mx3z1k

correct output
bvololahhhofmxmxfmxmxofmxmxfmx...

user output
2ol olol
1h hh
6o4f2mx o4f2mxo4f2mx
4f2mx f2mxf2mx
2mx mxmx
...
Truncated

Test 5

Group: 1, 2

Verdict:

input
xewpp2f1l6a5jp1v2v1y

correct output
xewppfffllajpvvajpvvajpvvjpjpv...

user output
2f1 f1f1
1l ll
6a5jp1v a5jp1va5jp1v
5jp1v2 jp1v2jp1v2
1v vv
...
Truncated

Test 6

Group: 1, 2

Verdict:

input
1v4z1kjm1t6vp5c1m2np

correct output
vvzkkjzkkjmttvpcmmvpcmmvpcmmnc...

user output
1v vv
4z1kj z1kjz1kj
1k kk
1t tt
6vp5c1m vp5c1mvp5c1m
...
Truncated

Test 7

Group: 1, 2

Verdict:

input
y2bl9cp21v7kgesxm2uv

correct output
yblblcpvvvvkgecpkkkkgecpvvvvkg...

user output
2bl blbl
9cp21v7kge cp21v7kgecp21v7kge
21v 1v1v
1v vv
7kgesxm2 kgesxm2kgesxm2
...
Truncated

Test 8

Group: 2

Verdict:

input
987654321b987654321f987654321u...

correct output
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...

user output
(empty)

Test 9

Group: 2

Verdict:

input
agjv4321w9dskvax5ws21r321l9n7d...

correct output
agjvwwwwwwwwwwwwwwwwdskvaxwsds...

user output
(empty)

Test 10

Group: 2

Verdict:

input
4mr1d71k432jt9sddyoy2oq7jvc1bm...

correct output
mrddmrddkkjtjtjtjtjtjtjtjtkkjt...

user output
(empty)

Test 11

Group: 2

Verdict:

input
1a1l1m1a1t1gc1yv1x1p1w1x1d1d1p...

correct output
aallmmaattggcyyvxxppwwxxddddpp...

user output
(empty)

Test 12

Group: 2

Verdict:

input
321e321b321a321r321m321f321s32...

correct output
eeeeeeeebbbbbbbbaaaaaaaarrrrrr...

user output
(empty)

Test 13

Group: 2

Verdict:

input
4321e4321l4321t4321w4321g4321c...

correct output
eeeeeeeeeeeeeeeellllllllllllll...

user output
(empty)

Test 14

Group: 2

Verdict:

input
987654321u987654321p987654321g...

correct output
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

user output
(empty)