9909 | 2024-03-18 15:30:09 | sdanika09 | Kiváló Számok | python3 | Runtime error 33/100 | 254ms | 16212 KiB |
n = input()
a = ""
if int(n) == 1:
a = -1
elif int(n) % 3 == 0:
for i in range(0, int(n)):
a += "1"
elif int(n) % 3 == 1:
for i in range(0, int(n) - 2):
a += "1"
a += "55"
else:
for i in range(0, int(n) - 1):
a += "1"
a += "5"
a = int(a)
print(a)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 10920 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 17ms | 11300 KiB | ||||
3 | Accepted | 17ms | 11680 KiB | ||||
4 | Accepted | 17ms | 11480 KiB | ||||
5 | Accepted | 17ms | 11752 KiB | ||||
6 | Accepted | 17ms | 11740 KiB | ||||
7 | Accepted | 17ms | 12248 KiB | ||||
8 | Accepted | 17ms | 12116 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 74ms | 13344 KiB | ||||
10 | Runtime error | 136ms | 13688 KiB | ||||
11 | Runtime error | 156ms | 13836 KiB | ||||
12 | Runtime error | 128ms | 13968 KiB | ||||
13 | Runtime error | 133ms | 13896 KiB | ||||
14 | Runtime error | 82ms | 13864 KiB | ||||
15 | Runtime error | 45ms | 13416 KiB | ||||
16 | Runtime error | 71ms | 14180 KiB | ||||
17 | Runtime error | 111ms | 14580 KiB | ||||
18 | Runtime error | 143ms | 15040 KiB | ||||
19 | Runtime error | 63ms | 14544 KiB | ||||
20 | Runtime error | 180ms | 15848 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 254ms | 16212 KiB | ||||
22 | Runtime error | 59ms | 14296 KiB | ||||
23 | Runtime error | 234ms | 16076 KiB | ||||
24 | Runtime error | 243ms | 16204 KiB | ||||
25 | Runtime error | 188ms | 15708 KiB | ||||
26 | Runtime error | 112ms | 14888 KiB | ||||
27 | Runtime error | 200ms | 15852 KiB | ||||
28 | Runtime error | 174ms | 15544 KiB | ||||
29 | Runtime error | 46ms | 14260 KiB | ||||
30 | Runtime error | 150ms | 15260 KiB | ||||
31 | Runtime error | 148ms | 15460 KiB | ||||
32 | Runtime error | 20ms | 13724 KiB | ||||
33 | Runtime error | 39ms | 14144 KiB |