110872024-07-06 21:28:57probaSzámjegycserepython3Wrong answer 0/100379ms7568 KiB
lista = [int(input()) for i in range(int(input()))]
for i in lista:
    if i % 25 == 0:
        print(0)
    elif str(i)[-1] == "0":
        if str(i).count('5') > 0 or str(i).count('0') > 0:
            print(1)
    elif str(i)[-1] == "5":
        if str(i).count('2') > 0 or str(i).count('7') > 0:
            print(1)
    elif str(i)[-2] == "2" or str(i)[-2] == "7":
        if str(i).count('5') > 0:
            print(1)
    elif str(i).count('0')>1 or (str(i).count('5')>0 and ('2' in str(i) or '7' in str(i) or '0' in str(i))):
        print(2)        
        
            
        
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms3044 KiB
subtask20/21
2Wrong answer129ms4800 KiB
subtask30/23
3Runtime error330ms7428 KiB
4Wrong answer331ms7368 KiB
5Wrong answer342ms7496 KiB
6Wrong answer340ms7412 KiB
7Wrong answer335ms7368 KiB
8Wrong answer379ms7540 KiB
9Wrong answer335ms7412 KiB
10Wrong answer331ms7444 KiB
11Wrong answer337ms7568 KiB
12Wrong answer337ms7488 KiB
13Wrong answer342ms7472 KiB
14Wrong answer333ms7540 KiB
15Wrong answer337ms7500 KiB
16Wrong answer377ms7480 KiB
17Wrong answer335ms7480 KiB
18Wrong answer338ms7500 KiB
19Wrong answer328ms7480 KiB
20Wrong answer331ms7480 KiB
21Wrong answer345ms7416 KiB
22Wrong answer337ms7480 KiB
23Wrong answer342ms7348 KiB
subtask40/41
24Wrong answer18ms3140 KiB
25Wrong answer19ms3192 KiB
26Wrong answer18ms3340 KiB
27Wrong answer18ms3124 KiB
28Wrong answer18ms3044 KiB
29Wrong answer19ms3044 KiB
30Wrong answer18ms3044 KiB
31Wrong answer18ms3192 KiB
32Wrong answer20ms3088 KiB
33Wrong answer19ms3172 KiB
34Wrong answer19ms3044 KiB
35Wrong answer18ms3044 KiB
36Wrong answer20ms2984 KiB
37Runtime error28ms3292 KiB
38Wrong answer18ms3088 KiB
39Wrong answer17ms3180 KiB
40Wrong answer18ms2996 KiB
41Wrong answer18ms3044 KiB
42Wrong answer21ms3008 KiB
43Wrong answer20ms3060 KiB
44Wrong answer20ms2936 KiB
45Wrong answer20ms3188 KiB
46Wrong answer18ms3188 KiB
47Wrong answer20ms2992 KiB
subtask50/15
48Wrong answer129ms3508 KiB
49Runtime error17ms3320 KiB
50Wrong answer367ms7532 KiB
51Runtime error17ms3316 KiB
52Runtime error48ms4360 KiB
53Runtime error17ms3064 KiB
54Wrong answer155ms3476 KiB
55Wrong answer76ms3960 KiB
56Wrong answer324ms7104 KiB
57Runtime error18ms3172 KiB
58Runtime error17ms3448 KiB
59Runtime error18ms3172 KiB
60Wrong answer165ms3556 KiB
61Wrong answer165ms3600 KiB
62Wrong answer122ms3684 KiB
63Wrong answer165ms3556 KiB
64Wrong answer307ms6956 KiB
65Wrong answer345ms6976 KiB
66Wrong answer347ms7144 KiB