9912 | 2024-03-18 15:36:30 | sdanika09 | Kiváló Számok | python3 | Accepted 100/100 | 266ms | 17560 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"
print(a)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11244 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 17ms | 11244 KiB | ||||
3 | Accepted | 17ms | 11692 KiB | ||||
4 | Accepted | 17ms | 11792 KiB | ||||
5 | Accepted | 17ms | 11968 KiB | ||||
6 | Accepted | 17ms | 12588 KiB | ||||
7 | Accepted | 17ms | 12744 KiB | ||||
8 | Accepted | 17ms | 12416 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 74ms | 14016 KiB | ||||
10 | Accepted | 137ms | 14692 KiB | ||||
11 | Accepted | 164ms | 15652 KiB | ||||
12 | Accepted | 128ms | 15304 KiB | ||||
13 | Accepted | 141ms | 15424 KiB | ||||
14 | Accepted | 82ms | 15056 KiB | ||||
15 | Accepted | 46ms | 14120 KiB | ||||
16 | Accepted | 68ms | 14496 KiB | ||||
17 | Accepted | 118ms | 15260 KiB | ||||
18 | Accepted | 162ms | 15988 KiB | ||||
19 | Accepted | 61ms | 14324 KiB | ||||
20 | Accepted | 186ms | 16548 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 236ms | 17356 KiB | ||||
22 | Accepted | 59ms | 14116 KiB | ||||
23 | Accepted | 266ms | 17360 KiB | ||||
24 | Accepted | 246ms | 17560 KiB | ||||
25 | Accepted | 204ms | 16748 KiB | ||||
26 | Accepted | 111ms | 15592 KiB | ||||
27 | Accepted | 196ms | 17076 KiB | ||||
28 | Accepted | 173ms | 17008 KiB | ||||
29 | Accepted | 50ms | 14904 KiB | ||||
30 | Accepted | 150ms | 16612 KiB | ||||
31 | Accepted | 148ms | 17004 KiB | ||||
32 | Accepted | 19ms | 14304 KiB | ||||
33 | Accepted | 37ms | 14916 KiB |