9687 | 2024-02-27 11:46:34 | lacito | Kiváló Számok | pypy3 | Accepted 100/100 | 50ms | 84912 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 | 41ms | 76048 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 39ms | 76932 KiB | ||||
3 | Accepted | 39ms | 76844 KiB | ||||
4 | Accepted | 39ms | 76856 KiB | ||||
5 | Accepted | 39ms | 77084 KiB | ||||
6 | Accepted | 39ms | 77120 KiB | ||||
7 | Accepted | 46ms | 77760 KiB | ||||
8 | Accepted | 48ms | 78000 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 43ms | 79012 KiB | ||||
10 | Accepted | 50ms | 80964 KiB | ||||
11 | Accepted | 45ms | 80936 KiB | ||||
12 | Accepted | 48ms | 81680 KiB | ||||
13 | Accepted | 45ms | 81612 KiB | ||||
14 | Accepted | 46ms | 79996 KiB | ||||
15 | Accepted | 46ms | 79520 KiB | ||||
16 | Accepted | 43ms | 79372 KiB | ||||
17 | Accepted | 41ms | 80260 KiB | ||||
18 | Accepted | 41ms | 81600 KiB | ||||
19 | Accepted | 41ms | 79952 KiB | ||||
20 | Accepted | 43ms | 82852 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 50ms | 84912 KiB | ||||
22 | Accepted | 43ms | 80008 KiB | ||||
23 | Accepted | 41ms | 84608 KiB | ||||
24 | Accepted | 41ms | 82912 KiB | ||||
25 | Accepted | 41ms | 82284 KiB | ||||
26 | Accepted | 39ms | 80736 KiB | ||||
27 | Accepted | 41ms | 83684 KiB | ||||
28 | Accepted | 41ms | 83076 KiB | ||||
29 | Accepted | 39ms | 79668 KiB | ||||
30 | Accepted | 41ms | 82320 KiB | ||||
31 | Accepted | 41ms | 82672 KiB | ||||
32 | Accepted | 39ms | 79340 KiB | ||||
33 | Accepted | 46ms | 79488 KiB |