96872024-02-27 11:46:34lacitoKiváló Számokpypy3Accepted 100/10050ms84912 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
1Accepted41ms76048 KiB
subtask233/33
2Accepted39ms76932 KiB
3Accepted39ms76844 KiB
4Accepted39ms76856 KiB
5Accepted39ms77084 KiB
6Accepted39ms77120 KiB
7Accepted46ms77760 KiB
8Accepted48ms78000 KiB
subtask333/33
9Accepted43ms79012 KiB
10Accepted50ms80964 KiB
11Accepted45ms80936 KiB
12Accepted48ms81680 KiB
13Accepted45ms81612 KiB
14Accepted46ms79996 KiB
15Accepted46ms79520 KiB
16Accepted43ms79372 KiB
17Accepted41ms80260 KiB
18Accepted41ms81600 KiB
19Accepted41ms79952 KiB
20Accepted43ms82852 KiB
subtask434/34
21Accepted50ms84912 KiB
22Accepted43ms80008 KiB
23Accepted41ms84608 KiB
24Accepted41ms82912 KiB
25Accepted41ms82284 KiB
26Accepted39ms80736 KiB
27Accepted41ms83684 KiB
28Accepted41ms83076 KiB
29Accepted39ms79668 KiB
30Accepted41ms82320 KiB
31Accepted41ms82672 KiB
32Accepted39ms79340 KiB
33Accepted46ms79488 KiB