9910 | 2024-03-18 15:31:52 | sdanika09 | Kiváló Számok | python3 | Runtime error 33/100 | 238ms | 16432 KiB |
n = int(input())
a = ""
if n % 3 == 0:
for i in range(0, n):
a += "1"
elif n % 3 == 1:
if n == 1:
a = -1
else:
for i in range(0, n - 2):
a += "1"
a += "55"
else:
for i in range(0, n - 1):
a += "1"
a += "5"
a = int(a)
print(a)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 18ms | 11240 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 17ms | 11428 KiB | ||||
3 | Accepted | 17ms | 11744 KiB | ||||
4 | Accepted | 17ms | 11960 KiB | ||||
5 | Accepted | 17ms | 12052 KiB | ||||
6 | Accepted | 17ms | 12216 KiB | ||||
7 | Accepted | 17ms | 12460 KiB | ||||
8 | Accepted | 17ms | 12932 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 74ms | 13784 KiB | ||||
10 | Runtime error | 128ms | 14276 KiB | ||||
11 | Runtime error | 156ms | 14964 KiB | ||||
12 | Runtime error | 127ms | 14556 KiB | ||||
13 | Runtime error | 133ms | 14796 KiB | ||||
14 | Runtime error | 82ms | 14480 KiB | ||||
15 | Runtime error | 43ms | 14164 KiB | ||||
16 | Runtime error | 70ms | 14492 KiB | ||||
17 | Runtime error | 108ms | 14880 KiB | ||||
18 | Runtime error | 144ms | 15464 KiB | ||||
19 | Runtime error | 67ms | 14540 KiB | ||||
20 | Runtime error | 180ms | 15612 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 232ms | 16432 KiB | ||||
22 | Runtime error | 59ms | 14308 KiB | ||||
23 | Runtime error | 236ms | 15764 KiB | ||||
24 | Runtime error | 238ms | 16216 KiB | ||||
25 | Runtime error | 187ms | 15780 KiB | ||||
26 | Runtime error | 109ms | 15032 KiB | ||||
27 | Runtime error | 196ms | 16088 KiB | ||||
28 | Runtime error | 196ms | 15844 KiB | ||||
29 | Runtime error | 46ms | 14736 KiB | ||||
30 | Runtime error | 149ms | 15864 KiB | ||||
31 | Runtime error | 149ms | 15544 KiB | ||||
32 | Runtime error | 20ms | 14624 KiB | ||||
33 | Runtime error | 37ms | 14724 KiB |