11493 | 2024-10-12 22:41:37 | Lacus0606 | Kiváló Számok | python3 | Wrong answer 0/100 | 18ms | 4920 KiB |
def main():
n = int(input())
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)
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2872 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 16ms | 3056 KiB | ||||
3 | Accepted | 16ms | 2864 KiB | ||||
4 | Accepted | 16ms | 2860 KiB | ||||
5 | Accepted | 14ms | 2872 KiB | ||||
6 | Accepted | 14ms | 3080 KiB | ||||
7 | Accepted | 14ms | 2880 KiB | ||||
8 | Accepted | 16ms | 2912 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 16ms | 3132 KiB | ||||
10 | Runtime error | 17ms | 3892 KiB | ||||
11 | Runtime error | 17ms | 3636 KiB | ||||
12 | Runtime error | 17ms | 3896 KiB | ||||
13 | Runtime error | 17ms | 3892 KiB | ||||
14 | Runtime error | 17ms | 3684 KiB | ||||
15 | Runtime error | 17ms | 3248 KiB | ||||
16 | Runtime error | 17ms | 3128 KiB | ||||
17 | Runtime error | 17ms | 3368 KiB | ||||
18 | Runtime error | 17ms | 4044 KiB | ||||
19 | Runtime error | 17ms | 3412 KiB | ||||
20 | Runtime error | 18ms | 4400 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 18ms | 4756 KiB | ||||
22 | Runtime error | 17ms | 3340 KiB | ||||
23 | Runtime error | 17ms | 4920 KiB | ||||
24 | Runtime error | 18ms | 3896 KiB | ||||
25 | Runtime error | 18ms | 3644 KiB | ||||
26 | Runtime error | 17ms | 3320 KiB | ||||
27 | Runtime error | 17ms | 4600 KiB | ||||
28 | Runtime error | 17ms | 4340 KiB | ||||
29 | Runtime error | 17ms | 3308 KiB | ||||
30 | Runtime error | 18ms | 4152 KiB | ||||
31 | Runtime error | 17ms | 4336 KiB | ||||
32 | Runtime error | 17ms | 3128 KiB | ||||
33 | Runtime error | 16ms | 3164 KiB |