133902025-01-07 19:03:27hosszumarcellSzámjegycserepython3Wrong answer 0/100535ms4404 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
1Accepted14ms3092 KiB
subtask20/21
2Wrong answer167ms3380 KiB
subtask30/23
3Runtime error483ms3896 KiB
4Wrong answer479ms3892 KiB
5Wrong answer474ms3884 KiB
6Wrong answer474ms3888 KiB
7Wrong answer485ms3876 KiB
8Wrong answer486ms3868 KiB
9Wrong answer477ms3992 KiB
10Wrong answer479ms3792 KiB
11Wrong answer476ms3892 KiB
12Wrong answer493ms3996 KiB
13Wrong answer528ms4084 KiB
14Wrong answer495ms3892 KiB
15Wrong answer479ms3892 KiB
16Wrong answer483ms3876 KiB
17Wrong answer483ms3896 KiB
18Wrong answer481ms4152 KiB
19Wrong answer493ms4148 KiB
20Wrong answer493ms4088 KiB
21Wrong answer483ms4076 KiB
22Wrong answer507ms4160 KiB
23Wrong answer477ms4132 KiB
subtask40/41
24Wrong answer16ms3120 KiB
25Wrong answer16ms3124 KiB
26Wrong answer16ms3312 KiB
27Wrong answer16ms3136 KiB
28Wrong answer16ms3148 KiB
29Wrong answer16ms2984 KiB
30Wrong answer16ms3312 KiB
31Wrong answer16ms3144 KiB
32Wrong answer16ms3316 KiB
33Wrong answer16ms3084 KiB
34Wrong answer16ms3056 KiB
35Wrong answer17ms3124 KiB
36Wrong answer19ms3116 KiB
37Runtime error16ms3116 KiB
38Wrong answer16ms3136 KiB
39Wrong answer16ms3112 KiB
40Wrong answer17ms3132 KiB
41Wrong answer16ms3124 KiB
42Wrong answer19ms3084 KiB
43Wrong answer19ms2984 KiB
44Wrong answer19ms3124 KiB
45Wrong answer20ms3124 KiB
46Wrong answer16ms3068 KiB
47Wrong answer19ms3124 KiB
subtask50/15
48Wrong answer35ms4148 KiB
49Runtime error17ms3380 KiB
50Wrong answer488ms4404 KiB
51Runtime error16ms3124 KiB
52Runtime error16ms3012 KiB
53Runtime error16ms3124 KiB
54Wrong answer35ms3900 KiB
55Wrong answer74ms3892 KiB
56Wrong answer488ms4404 KiB
57Runtime error16ms3380 KiB
58Runtime error16ms3380 KiB
59Runtime error14ms3676 KiB
60Wrong answer34ms3992 KiB
61Wrong answer34ms3884 KiB
62Wrong answer34ms3992 KiB
63Wrong answer34ms3920 KiB
64Wrong answer493ms4232 KiB
65Wrong answer483ms4404 KiB
66Wrong answer535ms4392 KiB