117192024-11-07 16:51:35bajozsaKiváló Számokpython3Wrong answer 0/100610ms5620 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
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer14ms3128 KiB
subtask20/33
2Wrong answer16ms3324 KiB
3Wrong answer16ms2960 KiB
4Wrong answer16ms3124 KiB
5Wrong answer16ms3032 KiB
6Wrong answer17ms2992 KiB
7Wrong answer30ms3024 KiB
8Wrong answer159ms3028 KiB
subtask30/33
9Runtime error81ms3556 KiB
10Runtime error216ms4220 KiB
11Runtime error303ms4596 KiB
12Runtime error206ms4260 KiB
13Runtime error224ms4380 KiB
14Runtime error97ms3636 KiB
15Runtime error35ms3368 KiB
16Runtime error72ms3592 KiB
17Runtime error146ms3888 KiB
18Runtime error259ms4400 KiB
19Runtime error59ms3540 KiB
20Runtime error370ms4888 KiB
subtask40/34
21Runtime error591ms5620 KiB
22Runtime error54ms3508 KiB
23Runtime error589ms5360 KiB
24Runtime error610ms5592 KiB
25Runtime error404ms4940 KiB
26Runtime error158ms4048 KiB
27Runtime error428ms5124 KiB
28Runtime error347ms4684 KiB
29Runtime error37ms3392 KiB
30Runtime error284ms4428 KiB
31Runtime error273ms4544 KiB
32Runtime error17ms3128 KiB
33Runtime error28ms3128 KiB