123332024-12-12 17:40:20WellLeopardUsuallyMaximális szorzat (50 pont)python3Runtime error 0/5017ms3144 KiB
from math import floor
q, m = map(int, input().split())
'''output = []'''
for i in range(q):
    a, x, b, y = map(int, input().split())
    print(floor(((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/014ms2872 KiB
2Runtime error0/016ms2872 KiB
3Runtime error0/016ms2872 KiB
4Runtime error0/016ms2872 KiB
5Runtime error0/016ms2872 KiB
6Runtime error0/216ms2872 KiB
7Runtime error0/216ms3128 KiB
8Runtime error0/216ms3144 KiB
9Runtime error0/216ms2916 KiB
10Runtime error0/216ms2872 KiB
11Runtime error0/216ms3096 KiB
12Runtime error0/116ms3124 KiB
13Runtime error0/116ms3128 KiB
14Runtime error0/117ms2884 KiB
15Runtime error0/116ms3124 KiB
16Runtime error0/116ms2868 KiB
17Runtime error0/116ms2872 KiB
18Runtime error0/116ms2872 KiB
19Runtime error0/116ms3124 KiB
20Runtime error0/116ms3052 KiB
21Runtime error0/116ms3100 KiB
22Runtime error0/116ms2956 KiB
23Runtime error0/114ms3024 KiB
24Runtime error0/116ms2964 KiB
25Runtime error0/217ms2916 KiB
26Runtime error0/216ms2956 KiB
27Runtime error0/216ms3108 KiB
28Runtime error0/116ms2888 KiB
29Runtime error0/217ms2872 KiB
30Runtime error0/116ms3132 KiB
31Runtime error0/116ms2872 KiB
32Runtime error0/216ms3128 KiB
33Runtime error0/216ms2980 KiB
34Runtime error0/114ms3000 KiB
35Runtime error0/216ms2932 KiB
36Runtime error0/216ms3096 KiB
37Runtime error0/216ms2872 KiB
38Runtime error0/216ms3056 KiB
39Runtime error0/116ms2872 KiB