96882024-02-27 12:44:39lacitoKiváló Számokpypy3Accepted 100/10046ms84276 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')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted45ms76172 KiB
subtask233/33
2Accepted41ms75924 KiB
3Accepted39ms76176 KiB
4Accepted39ms76808 KiB
5Accepted39ms77060 KiB
6Accepted39ms76776 KiB
7Accepted46ms77012 KiB
8Accepted46ms77356 KiB
subtask333/33
9Accepted46ms78224 KiB
10Accepted43ms80228 KiB
11Accepted41ms79564 KiB
12Accepted41ms80472 KiB
13Accepted41ms81080 KiB
14Accepted41ms79672 KiB
15Accepted39ms78820 KiB
16Accepted41ms78772 KiB
17Accepted39ms79440 KiB
18Accepted41ms81052 KiB
19Accepted39ms78916 KiB
20Accepted41ms82636 KiB
subtask434/34
21Accepted43ms83920 KiB
22Accepted41ms79524 KiB
23Accepted41ms84276 KiB
24Accepted41ms81988 KiB
25Accepted41ms81400 KiB
26Accepted41ms80152 KiB
27Accepted43ms83372 KiB
28Accepted43ms82732 KiB
29Accepted39ms79136 KiB
30Accepted41ms81880 KiB
31Accepted41ms82208 KiB
32Accepted39ms78736 KiB
33Accepted39ms78952 KiB