123322024-12-12 17:38:28WellLeopardUsuallyMaximális szorzat (50 pont)python3Runtime error 0/5017ms3084 KiB

q, m = map(int, input().split())
'''output = []'''
for i in range(q):
    a, x, b, y = map(int, input().split())
    print(((b-a-1)*24+(24-x)+y-1)//m)
    '''output.append(floor(((b-a-1)*24+(24-x)+y-1)/m))'''
'''for out in output:
    print(out)'''
SubtaskSumTestVerdictTimeMemory
base0/50
1Runtime error0/016ms3064 KiB
2Runtime error0/016ms2872 KiB
3Runtime error0/016ms3064 KiB
4Runtime error0/016ms2864 KiB
5Runtime error0/016ms3080 KiB
6Runtime error0/216ms2876 KiB
7Runtime error0/216ms3068 KiB
8Runtime error0/216ms3068 KiB
9Runtime error0/214ms2896 KiB
10Runtime error0/216ms2872 KiB
11Runtime error0/216ms3068 KiB
12Runtime error0/114ms3012 KiB
13Runtime error0/117ms2944 KiB
14Runtime error0/116ms3004 KiB
15Runtime error0/116ms2996 KiB
16Runtime error0/114ms3084 KiB
17Runtime error0/117ms3076 KiB
18Runtime error0/116ms2944 KiB
19Runtime error0/114ms2872 KiB
20Runtime error0/116ms2988 KiB
21Runtime error0/116ms2872 KiB
22Runtime error0/116ms2920 KiB
23Runtime error0/116ms2884 KiB
24Runtime error0/116ms2872 KiB
25Runtime error0/216ms3064 KiB
26Runtime error0/216ms2872 KiB
27Runtime error0/217ms2872 KiB
28Runtime error0/114ms2880 KiB
29Runtime error0/216ms2880 KiB
30Runtime error0/116ms2872 KiB
31Runtime error0/116ms2868 KiB
32Runtime error0/216ms2944 KiB
33Runtime error0/216ms2992 KiB
34Runtime error0/116ms2888 KiB
35Runtime error0/216ms2880 KiB
36Runtime error0/217ms2868 KiB
37Runtime error0/216ms2952 KiB
38Runtime error0/216ms2936 KiB
39Runtime error0/114ms2952 KiB