110862024-07-06 21:26:48probaSzámjegycserepython3Wrong answer 0/100377ms8760 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 answer127ms5056 KiB
subtask30/23
3Runtime error328ms8000 KiB
4Wrong answer337ms8064 KiB
5Wrong answer331ms8360 KiB
6Wrong answer335ms8172 KiB
7Wrong answer335ms8164 KiB
8Wrong answer370ms8136 KiB
9Wrong answer331ms8136 KiB
10Wrong answer338ms8284 KiB
11Wrong answer333ms8136 KiB
12Wrong answer331ms8136 KiB
13Wrong answer335ms8248 KiB
14Wrong answer333ms8308 KiB
15Wrong answer340ms8304 KiB
16Wrong answer377ms8332 KiB
17Wrong answer340ms8452 KiB
18Wrong answer340ms8376 KiB
19Wrong answer335ms8504 KiB
20Wrong answer331ms8760 KiB
21Wrong answer344ms8376 KiB
22Wrong answer342ms8564 KiB
23Wrong answer342ms8504 KiB
subtask40/41
24Wrong answer19ms3228 KiB
25Wrong answer18ms3044 KiB
26Wrong answer19ms3060 KiB
27Wrong answer19ms3044 KiB
28Wrong answer19ms3060 KiB
29Wrong answer19ms3080 KiB
30Wrong answer18ms3316 KiB
31Wrong answer19ms3180 KiB
32Wrong answer19ms3044 KiB
33Wrong answer19ms3044 KiB
34Wrong answer19ms2988 KiB
35Wrong answer18ms3176 KiB
36Wrong answer20ms3036 KiB
37Runtime error28ms3300 KiB
38Wrong answer18ms3104 KiB
39Wrong answer17ms2928 KiB
40Wrong answer17ms3064 KiB
41Wrong answer17ms3192 KiB
42Wrong answer21ms3044 KiB
43Wrong answer20ms3048 KiB
44Wrong answer20ms3056 KiB
45Wrong answer20ms3088 KiB
46Wrong answer18ms3172 KiB
47Wrong answer20ms3172 KiB
subtask50/15
48Wrong answer129ms4576 KiB
49Runtime error17ms3464 KiB
50Wrong answer365ms8568 KiB
51Runtime error18ms3192 KiB
52Runtime error46ms5276 KiB
53Runtime error17ms3044 KiB
54Wrong answer153ms4408 KiB
55Wrong answer78ms4840 KiB
56Wrong answer328ms8068 KiB
57Runtime error17ms3428 KiB
58Runtime error17ms3428 KiB
59Runtime error18ms3428 KiB
60Wrong answer165ms4496 KiB
61Wrong answer165ms4508 KiB
62Wrong answer123ms4472 KiB
63Wrong answer165ms4412 KiB
64Wrong answer308ms8132 KiB
65Wrong answer351ms8128 KiB
66Wrong answer344ms8192 KiB