12067 | 2024-11-27 15:31:11 | Xetoxino | Kiváló Számok | python3 | Accepted 100/100 | 18ms | 5800 KiB |
N = int(input())
if N == 1:
print(-1)
elif N%2 == 0:
print(N//2 * '15')
else:
print('111' + '15' * ((N-3)//2))
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 14ms | 2876 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 16ms | 2872 KiB | ||||
3 | Accepted | 14ms | 3056 KiB | ||||
4 | Accepted | 14ms | 3080 KiB | ||||
5 | Accepted | 16ms | 2872 KiB | ||||
6 | Accepted | 16ms | 2872 KiB | ||||
7 | Accepted | 16ms | 2872 KiB | ||||
8 | Accepted | 16ms | 2948 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 16ms | 3752 KiB | ||||
10 | Accepted | 17ms | 4656 KiB | ||||
11 | Accepted | 17ms | 4656 KiB | ||||
12 | Accepted | 17ms | 4424 KiB | ||||
13 | Accepted | 17ms | 4408 KiB | ||||
14 | Accepted | 16ms | 3724 KiB | ||||
15 | Accepted | 16ms | 3276 KiB | ||||
16 | Accepted | 16ms | 3640 KiB | ||||
17 | Accepted | 17ms | 4052 KiB | ||||
18 | Accepted | 17ms | 4664 KiB | ||||
19 | Accepted | 14ms | 3540 KiB | ||||
20 | Accepted | 17ms | 4992 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 18ms | 5784 KiB | ||||
22 | Accepted | 16ms | 3408 KiB | ||||
23 | Accepted | 18ms | 5688 KiB | ||||
24 | Accepted | 17ms | 5800 KiB | ||||
25 | Accepted | 17ms | 5176 KiB | ||||
26 | Accepted | 17ms | 4216 KiB | ||||
27 | Accepted | 17ms | 5152 KiB | ||||
28 | Accepted | 17ms | 5020 KiB | ||||
29 | Accepted | 16ms | 3380 KiB | ||||
30 | Accepted | 17ms | 4580 KiB | ||||
31 | Accepted | 17ms | 4660 KiB | ||||
32 | Accepted | 16ms | 3016 KiB | ||||
33 | Accepted | 16ms | 3128 KiB |