CSES - Datatähti 2019 loppu - Results
Submission details
Task:Luokittelija
Sender:Valtteri Ilola
Submission time:2019-01-17 16:24:28 +0200
Language:Python3
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
#40
Test results
testverdicttimegroup
#10.04 s1details
#20.05 s2details
#30.05 s3details
#40.04 s4details

Code

from itertools import product

instructions = []

input()

for i in range(5, 0, -1):
    for p in product('10', repeat=i):
        p = ''.join(p)
        instructions.append(p * 2 + ' -> ' + '_')

print(len(instructions))
print('\n'.join(instructions))

Test details

Test 1

Group: 1

Verdict:

input
2

correct output
42
ED -> DE
FD -> DF
1DG -> DG1
GE -> EG
...

user output
62
1111111111 -> _
1111011110 -> _
1110111101 -> _
1110011100 -> _
...
Truncated

Test 2

Group: 2

Verdict:

input
3

correct output
54
ED -> DE
FD -> DF
HDG -> DGH
IDG -> DGI
...

user output
62
1111111111 -> _
1111011110 -> _
1110111101 -> _
1110011100 -> _
...
Truncated

Test 3

Group: 3

Verdict:

input
4

correct output
66
ED -> DE
FD -> DF
HDG -> DGH
IDG -> DGI
...

user output
62
1111111111 -> _
1111011110 -> _
1110111101 -> _
1110011100 -> _
...
Truncated

Test 4

Group: 4

Verdict:

input
5

correct output
78
ED -> DE
FD -> DF
HDG -> DGH
IDG -> DGI
...

user output
62
1111111111 -> _
1111011110 -> _
1110111101 -> _
1110011100 -> _
...
Truncated