99122024-03-18 15:36:30sdanika09Kiváló Számokpython3Accepted 100/100266ms17560 KiB
n = int(input())
a = ""

if n % 3 == 0:
    for i in range(0, n):
        a += "1"

elif n % 3 == 1:
    if n == 1:
        a = -1
    
    else:
        for i in range(0, n - 2):
            a += "1"
        a += "55"

else:
    for i in range(0, n - 1):
        a += "1"
    a += "5"

print(a)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11244 KiB
subtask233/33
2Accepted17ms11244 KiB
3Accepted17ms11692 KiB
4Accepted17ms11792 KiB
5Accepted17ms11968 KiB
6Accepted17ms12588 KiB
7Accepted17ms12744 KiB
8Accepted17ms12416 KiB
subtask333/33
9Accepted74ms14016 KiB
10Accepted137ms14692 KiB
11Accepted164ms15652 KiB
12Accepted128ms15304 KiB
13Accepted141ms15424 KiB
14Accepted82ms15056 KiB
15Accepted46ms14120 KiB
16Accepted68ms14496 KiB
17Accepted118ms15260 KiB
18Accepted162ms15988 KiB
19Accepted61ms14324 KiB
20Accepted186ms16548 KiB
subtask434/34
21Accepted236ms17356 KiB
22Accepted59ms14116 KiB
23Accepted266ms17360 KiB
24Accepted246ms17560 KiB
25Accepted204ms16748 KiB
26Accepted111ms15592 KiB
27Accepted196ms17076 KiB
28Accepted173ms17008 KiB
29Accepted50ms14904 KiB
30Accepted150ms16612 KiB
31Accepted148ms17004 KiB
32Accepted19ms14304 KiB
33Accepted37ms14916 KiB