11494 | 2024-10-12 22:44:15 | Lacus0606 | Kiváló Számok | python3 | Wrong answer 0/100 | 19ms | 4756 KiB |
N = int(input())
if N==1:
megoldas=-1
if N%3==0:
megoldas = "1"*(N)
megoldas = int(megoldas)
elif N%3==1:
megoldas = "5"*(N-2) + "1"*2
megoldas = int(megoldas)
elif N%3==2:
megoldas = "5" + "1"*(N-1)
megoldas = int(megoldas)
print(megoldas)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 14ms | 2872 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 16ms | 2872 KiB | ||||
3 | Accepted | 16ms | 2872 KiB | ||||
4 | Accepted | 14ms | 2968 KiB | ||||
5 | Accepted | 14ms | 2976 KiB | ||||
6 | Accepted | 16ms | 3024 KiB | ||||
7 | Accepted | 16ms | 3112 KiB | ||||
8 | Accepted | 16ms | 3092 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 16ms | 3128 KiB | ||||
10 | Runtime error | 17ms | 3900 KiB | ||||
11 | Runtime error | 17ms | 3640 KiB | ||||
12 | Runtime error | 17ms | 3984 KiB | ||||
13 | Runtime error | 17ms | 3896 KiB | ||||
14 | Runtime error | 16ms | 3488 KiB | ||||
15 | Runtime error | 14ms | 3224 KiB | ||||
16 | Runtime error | 16ms | 3128 KiB | ||||
17 | Runtime error | 17ms | 3384 KiB | ||||
18 | Runtime error | 17ms | 4088 KiB | ||||
19 | Runtime error | 17ms | 3384 KiB | ||||
20 | Runtime error | 18ms | 4300 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 19ms | 4756 KiB | ||||
22 | Runtime error | 16ms | 3324 KiB | ||||
23 | Runtime error | 18ms | 4716 KiB | ||||
24 | Runtime error | 17ms | 4004 KiB | ||||
25 | Runtime error | 17ms | 3696 KiB | ||||
26 | Runtime error | 17ms | 3324 KiB | ||||
27 | Runtime error | 17ms | 4456 KiB | ||||
28 | Runtime error | 17ms | 4412 KiB | ||||
29 | Runtime error | 16ms | 3132 KiB | ||||
30 | Runtime error | 18ms | 4152 KiB | ||||
31 | Runtime error | 17ms | 4164 KiB | ||||
32 | Runtime error | 14ms | 2996 KiB | ||||
33 | Runtime error | 14ms | 2988 KiB |