11719 | 2024-11-07 16:51:35 | bajozsa | Kiváló Számok | python3 | Wrong answer 0/100 | 610ms | 5620 KiB |
N = int(input().strip())
szam=-1
min = pow(10,N-1)
max = pow(10,N)
for i in range(min,max):
szamjegyek = str(i)
db1 = 0
db5 = 0
for j in szamjegyek:
if j == "2" or j == "3" or j == "4" or j == "6" or j == "7" or j == "8" or j == "9" or j == "0":
break
if j == "1":
db1 += 1
if j == "5":
db5 += 1
if db1 == db5:
szam = i
break
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 14ms | 3128 KiB | ||||
subtask2 | 0/33 | ||||||
2 | Wrong answer | 16ms | 3324 KiB | ||||
3 | Wrong answer | 16ms | 2960 KiB | ||||
4 | Wrong answer | 16ms | 3124 KiB | ||||
5 | Wrong answer | 16ms | 3032 KiB | ||||
6 | Wrong answer | 17ms | 2992 KiB | ||||
7 | Wrong answer | 30ms | 3024 KiB | ||||
8 | Wrong answer | 159ms | 3028 KiB | ||||
subtask3 | 0/33 | ||||||
9 | Runtime error | 81ms | 3556 KiB | ||||
10 | Runtime error | 216ms | 4220 KiB | ||||
11 | Runtime error | 303ms | 4596 KiB | ||||
12 | Runtime error | 206ms | 4260 KiB | ||||
13 | Runtime error | 224ms | 4380 KiB | ||||
14 | Runtime error | 97ms | 3636 KiB | ||||
15 | Runtime error | 35ms | 3368 KiB | ||||
16 | Runtime error | 72ms | 3592 KiB | ||||
17 | Runtime error | 146ms | 3888 KiB | ||||
18 | Runtime error | 259ms | 4400 KiB | ||||
19 | Runtime error | 59ms | 3540 KiB | ||||
20 | Runtime error | 370ms | 4888 KiB | ||||
subtask4 | 0/34 | ||||||
21 | Runtime error | 591ms | 5620 KiB | ||||
22 | Runtime error | 54ms | 3508 KiB | ||||
23 | Runtime error | 589ms | 5360 KiB | ||||
24 | Runtime error | 610ms | 5592 KiB | ||||
25 | Runtime error | 404ms | 4940 KiB | ||||
26 | Runtime error | 158ms | 4048 KiB | ||||
27 | Runtime error | 428ms | 5124 KiB | ||||
28 | Runtime error | 347ms | 4684 KiB | ||||
29 | Runtime error | 37ms | 3392 KiB | ||||
30 | Runtime error | 284ms | 4428 KiB | ||||
31 | Runtime error | 273ms | 4544 KiB | ||||
32 | Runtime error | 17ms | 3128 KiB | ||||
33 | Runtime error | 28ms | 3128 KiB |