11495 | 2024-10-12 22:44:41 | Lacus0606 | Kiváló Számok | python3 | Accepted 100/100 | 17ms | 5976 KiB |
#!/usr/bin/env python3
# construction
# passes all tests?
# input data
N = int(input().strip())
# insert your code here
if N<2:
print('-1')
else:
if N%2==0:
print('15'*(N//2))
else:
print('111'+'15'*((N-3)//2))
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2872 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 16ms | 2928 KiB | ||||
3 | Accepted | 16ms | 3060 KiB | ||||
4 | Accepted | 14ms | 3056 KiB | ||||
5 | Accepted | 16ms | 3068 KiB | ||||
6 | Accepted | 16ms | 3188 KiB | ||||
7 | Accepted | 14ms | 2872 KiB | ||||
8 | Accepted | 14ms | 2868 KiB | ||||
subtask3 | 33/33 | ||||||
9 | Accepted | 16ms | 3640 KiB | ||||
10 | Accepted | 17ms | 4608 KiB | ||||
11 | Accepted | 17ms | 4660 KiB | ||||
12 | Accepted | 17ms | 4404 KiB | ||||
13 | Accepted | 17ms | 4528 KiB | ||||
14 | Accepted | 16ms | 3644 KiB | ||||
15 | Accepted | 14ms | 3276 KiB | ||||
16 | Accepted | 16ms | 3472 KiB | ||||
17 | Accepted | 17ms | 4152 KiB | ||||
18 | Accepted | 17ms | 4676 KiB | ||||
19 | Accepted | 16ms | 3504 KiB | ||||
20 | Accepted | 17ms | 4920 KiB | ||||
subtask4 | 34/34 | ||||||
21 | Accepted | 17ms | 5976 KiB | ||||
22 | Accepted | 16ms | 3424 KiB | ||||
23 | Accepted | 17ms | 5872 KiB | ||||
24 | Accepted | 17ms | 5688 KiB | ||||
25 | Accepted | 17ms | 5236 KiB | ||||
26 | Accepted | 17ms | 4272 KiB | ||||
27 | Accepted | 17ms | 5336 KiB | ||||
28 | Accepted | 17ms | 4908 KiB | ||||
29 | Accepted | 16ms | 3280 KiB | ||||
30 | Accepted | 17ms | 4612 KiB | ||||
31 | Accepted | 17ms | 4548 KiB | ||||
32 | Accepted | 16ms | 2900 KiB | ||||
33 | Accepted | 14ms | 3272 KiB |