99102024-03-18 15:31:52sdanika09Kiváló Számokpython3Runtime error 33/100238ms16432 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
1Accepted18ms11240 KiB
subtask233/33
2Accepted17ms11428 KiB
3Accepted17ms11744 KiB
4Accepted17ms11960 KiB
5Accepted17ms12052 KiB
6Accepted17ms12216 KiB
7Accepted17ms12460 KiB
8Accepted17ms12932 KiB
subtask30/33
9Runtime error74ms13784 KiB
10Runtime error128ms14276 KiB
11Runtime error156ms14964 KiB
12Runtime error127ms14556 KiB
13Runtime error133ms14796 KiB
14Runtime error82ms14480 KiB
15Runtime error43ms14164 KiB
16Runtime error70ms14492 KiB
17Runtime error108ms14880 KiB
18Runtime error144ms15464 KiB
19Runtime error67ms14540 KiB
20Runtime error180ms15612 KiB
subtask40/34
21Runtime error232ms16432 KiB
22Runtime error59ms14308 KiB
23Runtime error236ms15764 KiB
24Runtime error238ms16216 KiB
25Runtime error187ms15780 KiB
26Runtime error109ms15032 KiB
27Runtime error196ms16088 KiB
28Runtime error196ms15844 KiB
29Runtime error46ms14736 KiB
30Runtime error149ms15864 KiB
31Runtime error149ms15544 KiB
32Runtime error20ms14624 KiB
33Runtime error37ms14724 KiB