Task: | Luokittelija |
Sender: | Valtteri Ilola |
Submission time: | 2019-01-17 16:23:14 +0200 |
Language: | Python3 |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
#4 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.05 s | 1 | details |
#2 | WRONG ANSWER | 0.05 s | 2 | details |
#3 | WRONG ANSWER | 0.05 s | 3 | details |
#4 | WRONG ANSWER | 0.05 s | 4 | details |
Code
from itertools import product instructions = [ 'BB -> _' ] input() for i in range(5, 0, -1): for p in product('10', repeat=i): p = ''.join(p) instructions.append(p + ' -> ' + 'B') print(len(instructions)) print('\n'.join(instructions))
Test details
Test 1
Group: 1
Verdict: WRONG ANSWER
input |
---|
2 |
correct output |
---|
42 ED -> DE FD -> DF 1DG -> DG1 GE -> EG ... |
user output |
---|
63 BB -> _ 11111 -> B 11110 -> B 11101 -> B ... Truncated |
Test 2
Group: 2
Verdict: WRONG ANSWER
input |
---|
3 |
correct output |
---|
54 ED -> DE FD -> DF HDG -> DGH IDG -> DGI ... |
user output |
---|
63 BB -> _ 11111 -> B 11110 -> B 11101 -> B ... Truncated |
Test 3
Group: 3
Verdict: WRONG ANSWER
input |
---|
4 |
correct output |
---|
66 ED -> DE FD -> DF HDG -> DGH IDG -> DGI ... |
user output |
---|
63 BB -> _ 11111 -> B 11110 -> B 11101 -> B ... Truncated |
Test 4
Group: 4
Verdict: WRONG ANSWER
input |
---|
5 |
correct output |
---|
78 ED -> DE FD -> DF HDG -> DGH IDG -> DGI ... |
user output |
---|
63 BB -> _ 11111 -> B 11110 -> B 11101 -> B ... Truncated |