11492 | 2024-10-12 22:40:27 | Lacus0606 | Kiváló Számok | python3 | Wrong answer 0/100 | 19ms | 5112 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)
return megoldas
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 14ms | 2872 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 16ms | 2864 KiB | ||||
3 | Wrong answer | 16ms | 3056 KiB | ||||
4 | Wrong answer | 16ms | 2872 KiB | ||||
5 | Wrong answer | 14ms | 3120 KiB | ||||
6 | Wrong answer | 16ms | 2880 KiB | ||||
7 | Wrong answer | 14ms | 3084 KiB | ||||
8 | Wrong answer | 16ms | 2968 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 16ms | 3312 KiB | ||||
10 | Runtime error | 17ms | 3896 KiB | ||||
11 | Runtime error | 17ms | 3640 KiB | ||||
12 | Runtime error | 17ms | 3896 KiB | ||||
13 | Runtime error | 17ms | 3896 KiB | ||||
14 | Runtime error | 17ms | 3608 KiB | ||||
15 | Runtime error | 16ms | 3224 KiB | ||||
16 | Runtime error | 17ms | 3232 KiB | ||||
17 | Runtime error | 17ms | 3444 KiB | ||||
18 | Runtime error | 17ms | 3908 KiB | ||||
19 | Runtime error | 16ms | 3272 KiB | ||||
20 | Runtime error | 18ms | 4428 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 18ms | 5112 KiB | ||||
22 | Runtime error | 17ms | 3384 KiB | ||||
23 | Runtime error | 19ms | 4932 KiB | ||||
24 | Runtime error | 17ms | 4080 KiB | ||||
25 | Runtime error | 17ms | 3776 KiB | ||||
26 | Runtime error | 17ms | 3424 KiB | ||||
27 | Runtime error | 17ms | 4412 KiB | ||||
28 | Runtime error | 17ms | 4416 KiB | ||||
29 | Runtime error | 16ms | 3376 KiB | ||||
30 | Runtime error | 17ms | 4152 KiB | ||||
31 | Runtime error | 18ms | 4336 KiB | ||||
32 | Runtime error | 14ms | 3148 KiB | ||||
33 | Runtime error | 14ms | 3052 KiB |