99112024-03-18 15:35:46sdanika09Kiváló Számokpython3Runtime error 33/100241ms15304 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"

a = int(a)
print(a)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11044 KiB
subtask233/33
2Accepted17ms11456 KiB
3Accepted17ms11592 KiB
4Accepted17ms11884 KiB
5Accepted17ms11912 KiB
6Accepted17ms12044 KiB
7Accepted17ms12232 KiB
8Accepted17ms12272 KiB
subtask30/33
9Runtime error75ms13020 KiB
10Runtime error138ms13792 KiB
11Runtime error165ms14544 KiB
12Runtime error127ms13960 KiB
13Runtime error131ms14140 KiB
14Runtime error85ms13712 KiB
15Runtime error45ms13128 KiB
16Runtime error70ms13444 KiB
17Runtime error104ms13980 KiB
18Runtime error143ms14548 KiB
19Runtime error61ms13404 KiB
20Runtime error180ms14504 KiB
subtask40/34
21Runtime error232ms15304 KiB
22Runtime error57ms13488 KiB
23Runtime error233ms15296 KiB
24Runtime error241ms15132 KiB
25Runtime error187ms14892 KiB
26Runtime error108ms13936 KiB
27Runtime error195ms15164 KiB
28Runtime error172ms14952 KiB
29Runtime error46ms13688 KiB
30Runtime error149ms14564 KiB
31Runtime error146ms14432 KiB
32Runtime error19ms13332 KiB
33Runtime error35ms13220 KiB