123312024-12-12 17:29:43WellLeopardUsuallyÖntözés (50 pont)python3Accepted 50/50186ms3268 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
base50/50
1Accepted0/016ms3128 KiB
2Accepted0/041ms3128 KiB
3Accepted5/517ms3116 KiB
4Accepted5/5180ms3124 KiB
5Accepted3/316ms2964 KiB
6Accepted3/316ms2928 KiB
7Accepted3/317ms2948 KiB
8Accepted3/317ms3068 KiB
9Accepted3/317ms3120 KiB
10Accepted3/316ms3068 KiB
11Accepted3/317ms3004 KiB
12Accepted1/116ms3120 KiB
13Accepted1/116ms3140 KiB
14Accepted1/116ms2952 KiB
15Accepted1/116ms3092 KiB
16Accepted2/2180ms3132 KiB
17Accepted3/3181ms3128 KiB
18Accepted2/2180ms3112 KiB
19Accepted3/3180ms3268 KiB
20Accepted1/1179ms3128 KiB
21Accepted1/1186ms3128 KiB
22Accepted3/3182ms3128 KiB