120402024-11-26 12:19:31kbarnabasSzámjegycserepython3Wrong answer 0/100240ms3388 KiB
n = int(input())
lepes = 0

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

    elif a[-1] in '0257' and a[:-1] in '0257':
        print(1)
    elif a[-2] in '0257' and a[:-2] in '0257':
        print(1)
    elif a[-2:] in '52' or a[-2:] in '05' or a[-2:] in '57':
        print(1)
    
        
        

SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer16ms2872 KiB
subtask20/21
2Wrong answer101ms3128 KiB
subtask30/23
3Runtime error238ms3124 KiB
4Wrong answer233ms3124 KiB
5Wrong answer231ms3128 KiB
6Wrong answer231ms3124 KiB
7Wrong answer232ms3128 KiB
8Wrong answer232ms3000 KiB
9Wrong answer232ms3112 KiB
10Wrong answer234ms3128 KiB
11Wrong answer236ms2960 KiB
12Wrong answer240ms2904 KiB
13Wrong answer234ms3128 KiB
14Wrong answer231ms3140 KiB
15Wrong answer232ms3108 KiB
16Wrong answer232ms3108 KiB
17Wrong answer240ms3128 KiB
18Wrong answer236ms3140 KiB
19Wrong answer232ms3128 KiB
20Wrong answer231ms2916 KiB
21Wrong answer231ms2940 KiB
22Wrong answer232ms2952 KiB
23Wrong answer232ms3012 KiB
subtask40/41
24Wrong answer17ms3128 KiB
25Wrong answer16ms3128 KiB
26Wrong answer16ms2872 KiB
27Wrong answer16ms3128 KiB
28Wrong answer14ms3072 KiB
29Wrong answer17ms2992 KiB
30Wrong answer14ms2944 KiB
31Wrong answer14ms3072 KiB
32Wrong answer17ms2872 KiB
33Wrong answer16ms2872 KiB
34Wrong answer17ms3320 KiB
35Wrong answer14ms3104 KiB
36Wrong answer18ms3128 KiB
37Runtime error17ms3060 KiB
38Wrong answer16ms3100 KiB
39Wrong answer16ms2892 KiB
40Wrong answer16ms3128 KiB
41Wrong answer17ms3100 KiB
42Wrong answer17ms3132 KiB
43Wrong answer17ms3120 KiB
44Wrong answer17ms3012 KiB
45Wrong answer17ms2984 KiB
46Wrong answer16ms3112 KiB
47Wrong answer17ms2896 KiB
subtask50/15
48Wrong answer32ms3024 KiB
49Runtime error17ms3388 KiB
50Wrong answer239ms3108 KiB
51Runtime error16ms3084 KiB
52Runtime error17ms3128 KiB
53Runtime error16ms2964 KiB
54Wrong answer32ms3128 KiB
55Wrong answer43ms3132 KiB
56Wrong answer221ms2972 KiB
57Runtime error16ms3128 KiB
58Runtime error14ms3128 KiB
59Runtime error16ms3096 KiB
60Wrong answer32ms3148 KiB
61Wrong answer30ms3128 KiB
62Wrong answer32ms3136 KiB
63Wrong answer30ms3128 KiB
64Wrong answer232ms3112 KiB
65Wrong answer206ms3128 KiB
66Wrong answer207ms3100 KiB