99092024-03-18 15:30:09sdanika09Kiváló Számokpython3Runtime error 33/100254ms16212 KiB
n = input()
a = ""

if int(n) == 1:
    a = -1

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

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

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

a = int(a)
print(a)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms10920 KiB
subtask233/33
2Accepted17ms11300 KiB
3Accepted17ms11680 KiB
4Accepted17ms11480 KiB
5Accepted17ms11752 KiB
6Accepted17ms11740 KiB
7Accepted17ms12248 KiB
8Accepted17ms12116 KiB
subtask30/33
9Runtime error74ms13344 KiB
10Runtime error136ms13688 KiB
11Runtime error156ms13836 KiB
12Runtime error128ms13968 KiB
13Runtime error133ms13896 KiB
14Runtime error82ms13864 KiB
15Runtime error45ms13416 KiB
16Runtime error71ms14180 KiB
17Runtime error111ms14580 KiB
18Runtime error143ms15040 KiB
19Runtime error63ms14544 KiB
20Runtime error180ms15848 KiB
subtask40/34
21Runtime error254ms16212 KiB
22Runtime error59ms14296 KiB
23Runtime error234ms16076 KiB
24Runtime error243ms16204 KiB
25Runtime error188ms15708 KiB
26Runtime error112ms14888 KiB
27Runtime error200ms15852 KiB
28Runtime error174ms15544 KiB
29Runtime error46ms14260 KiB
30Runtime error150ms15260 KiB
31Runtime error148ms15460 KiB
32Runtime error20ms13724 KiB
33Runtime error39ms14144 KiB