145222025-01-13 18:18:01tothbenedekSzámjegycserepython3Wrong answer 0/100528ms3320 KiB
n = int(input())
lepes =0

for i in range(n):
    a = input()
    if int(a)%25==0:
        lepes =0

    elif a[-2:] in ['52','57','05']:
        lepes = 1

    elif a[-1] == '0' and ( '0' in a[:-1] or '5' in a[:-1] ):
        lepes = 1
    elif a[-2] in '0257' and a[:-2] in '0257':
        lepes = 1
    


    print(lepes)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted14ms3056 KiB
subtask20/21
2Wrong answer168ms3112 KiB
subtask30/23
3Runtime error481ms3120 KiB
4Wrong answer528ms3120 KiB
5Wrong answer481ms3312 KiB
6Wrong answer481ms3124 KiB
7Wrong answer486ms3136 KiB
8Wrong answer483ms3124 KiB
9Wrong answer485ms3124 KiB
10Wrong answer501ms3100 KiB
11Wrong answer488ms3120 KiB
12Wrong answer488ms3120 KiB
13Wrong answer485ms3120 KiB
14Wrong answer474ms3124 KiB
15Wrong answer490ms3124 KiB
16Wrong answer488ms3112 KiB
17Wrong answer469ms3224 KiB
18Wrong answer474ms3112 KiB
19Wrong answer492ms3100 KiB
20Wrong answer486ms3260 KiB
21Wrong answer495ms3124 KiB
22Wrong answer488ms3296 KiB
23Wrong answer474ms3124 KiB
subtask40/41
24Wrong answer16ms3124 KiB
25Wrong answer16ms3144 KiB
26Wrong answer16ms3124 KiB
27Wrong answer16ms3132 KiB
28Wrong answer16ms2936 KiB
29Wrong answer16ms2960 KiB
30Wrong answer16ms2968 KiB
31Wrong answer16ms3076 KiB
32Wrong answer14ms3124 KiB
33Wrong answer14ms3112 KiB
34Wrong answer16ms3124 KiB
35Wrong answer16ms3072 KiB
36Wrong answer19ms3124 KiB
37Runtime error16ms2900 KiB
38Wrong answer16ms3312 KiB
39Wrong answer16ms2888 KiB
40Wrong answer17ms3100 KiB
41Wrong answer16ms3124 KiB
42Wrong answer19ms3096 KiB
43Wrong answer20ms3100 KiB
44Wrong answer20ms3096 KiB
45Wrong answer19ms2892 KiB
46Wrong answer16ms2920 KiB
47Wrong answer20ms2924 KiB
subtask50/15
48Wrong answer35ms3152 KiB
49Runtime error17ms3120 KiB
50Wrong answer495ms3120 KiB
51Runtime error16ms3124 KiB
52Runtime error16ms3112 KiB
53Runtime error14ms3124 KiB
54Wrong answer34ms3128 KiB
55Wrong answer72ms2936 KiB
56Wrong answer493ms3196 KiB
57Runtime error14ms3124 KiB
58Runtime error16ms3124 KiB
59Runtime error17ms3320 KiB
60Wrong answer34ms3032 KiB
61Wrong answer34ms3124 KiB
62Wrong answer35ms3140 KiB
63Wrong answer35ms3124 KiB
64Wrong answer504ms3124 KiB
65Wrong answer503ms3124 KiB
66Wrong answer467ms3124 KiB