123352024-12-12 17:42:02WellLeopardUsuallyÖntözés (50 pont)python3Accepted 50/50184ms3304 KiB
from math import floor
q, m = map(int, input().split())
for i in range(q):
    a, x, b, y = map(int, input().split())
    print(floor(((b-a-1)*24+(24-x)+y-1)/m))
    
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms2872 KiB
2Accepted0/041ms3124 KiB
3Accepted5/517ms2868 KiB
4Accepted5/5173ms3304 KiB
5Accepted3/317ms3116 KiB
6Accepted3/316ms2920 KiB
7Accepted3/317ms3012 KiB
8Accepted3/316ms3104 KiB
9Accepted3/316ms2944 KiB
10Accepted3/316ms2876 KiB
11Accepted3/316ms3088 KiB
12Accepted1/116ms3020 KiB
13Accepted1/117ms3076 KiB
14Accepted1/116ms2900 KiB
15Accepted1/116ms3028 KiB
16Accepted2/2184ms3128 KiB
17Accepted3/3180ms3128 KiB
18Accepted2/2182ms3128 KiB
19Accepted3/3180ms3128 KiB
20Accepted1/1184ms3100 KiB
21Accepted1/1172ms3128 KiB
22Accepted3/3180ms3128 KiB