9911 | 2024-03-18 15:35:46 | sdanika09 | Kiváló Számok | python3 | Runtime error 33/100 | 241ms | 15304 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)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11044 KiB | ||||
subtask2 | 33/33 | ||||||
2 | Accepted | 17ms | 11456 KiB | ||||
3 | Accepted | 17ms | 11592 KiB | ||||
4 | Accepted | 17ms | 11884 KiB | ||||
5 | Accepted | 17ms | 11912 KiB | ||||
6 | Accepted | 17ms | 12044 KiB | ||||
7 | Accepted | 17ms | 12232 KiB | ||||
8 | Accepted | 17ms | 12272 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 75ms | 13020 KiB | ||||
10 | Runtime error | 138ms | 13792 KiB | ||||
11 | Runtime error | 165ms | 14544 KiB | ||||
12 | Runtime error | 127ms | 13960 KiB | ||||
13 | Runtime error | 131ms | 14140 KiB | ||||
14 | Runtime error | 85ms | 13712 KiB | ||||
15 | Runtime error | 45ms | 13128 KiB | ||||
16 | Runtime error | 70ms | 13444 KiB | ||||
17 | Runtime error | 104ms | 13980 KiB | ||||
18 | Runtime error | 143ms | 14548 KiB | ||||
19 | Runtime error | 61ms | 13404 KiB | ||||
20 | Runtime error | 180ms | 14504 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 232ms | 15304 KiB | ||||
22 | Runtime error | 57ms | 13488 KiB | ||||
23 | Runtime error | 233ms | 15296 KiB | ||||
24 | Runtime error | 241ms | 15132 KiB | ||||
25 | Runtime error | 187ms | 14892 KiB | ||||
26 | Runtime error | 108ms | 13936 KiB | ||||
27 | Runtime error | 195ms | 15164 KiB | ||||
28 | Runtime error | 172ms | 14952 KiB | ||||
29 | Runtime error | 46ms | 13688 KiB | ||||
30 | Runtime error | 149ms | 14564 KiB | ||||
31 | Runtime error | 146ms | 14432 KiB | ||||
32 | Runtime error | 19ms | 13332 KiB | ||||
33 | Runtime error | 35ms | 13220 KiB |