9688 | 2024-02-27 12:44:39 | lacito | Kiváló Számok | pypy3 | Accepted 100/100 | 46ms | 84276 KiB |
n = int(input())
if n == 1:
print(-1)
elif n % 3 == 0:
print('1' * n)
elif n % 3 == 1:
print('1' * (n - 2) + '55')
else:
print('1' * (n - 1) + '5')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 45ms | 76172 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 41ms | 75924 KiB | ||||
3 | Accepted | 39ms | 76176 KiB | ||||
4 | Accepted | 39ms | 76808 KiB | ||||
5 | Accepted | 39ms | 77060 KiB | ||||
6 | Accepted | 39ms | 76776 KiB | ||||
7 | Accepted | 46ms | 77012 KiB | ||||
8 | Accepted | 46ms | 77356 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 46ms | 78224 KiB | ||||
10 | Accepted | 43ms | 80228 KiB | ||||
11 | Accepted | 41ms | 79564 KiB | ||||
12 | Accepted | 41ms | 80472 KiB | ||||
13 | Accepted | 41ms | 81080 KiB | ||||
14 | Accepted | 41ms | 79672 KiB | ||||
15 | Accepted | 39ms | 78820 KiB | ||||
16 | Accepted | 41ms | 78772 KiB | ||||
17 | Accepted | 39ms | 79440 KiB | ||||
18 | Accepted | 41ms | 81052 KiB | ||||
19 | Accepted | 39ms | 78916 KiB | ||||
20 | Accepted | 41ms | 82636 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 43ms | 83920 KiB | ||||
22 | Accepted | 41ms | 79524 KiB | ||||
23 | Accepted | 41ms | 84276 KiB | ||||
24 | Accepted | 41ms | 81988 KiB | ||||
25 | Accepted | 41ms | 81400 KiB | ||||
26 | Accepted | 41ms | 80152 KiB | ||||
27 | Accepted | 43ms | 83372 KiB | ||||
28 | Accepted | 43ms | 82732 KiB | ||||
29 | Accepted | 39ms | 79136 KiB | ||||
30 | Accepted | 41ms | 81880 KiB | ||||
31 | Accepted | 41ms | 82208 KiB | ||||
32 | Accepted | 39ms | 78736 KiB | ||||
33 | Accepted | 39ms | 78952 KiB |