116492024-11-03 16:50:03MagyarKendeSZLGÖntözés (50 pont)python3Accepted 50/50186ms3776 KiB
Q, M = map(int, input().split())
for _ in range(Q):
    A, X, B, Y = map(int, input().split())
    print((((B - 1) * 24 + Y) - ((A - 1) * 24 + X) - 1) // M)
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/014ms3172 KiB
2Accepted0/041ms3320 KiB
3Accepted5/517ms2872 KiB
4Accepted5/5178ms3712 KiB
5Accepted3/316ms3076 KiB
6Accepted3/316ms2872 KiB
7Accepted3/316ms2888 KiB
8Accepted3/317ms2884 KiB
9Accepted3/316ms3088 KiB
10Accepted3/316ms2872 KiB
11Accepted3/316ms2872 KiB
12Accepted1/117ms3024 KiB
13Accepted1/116ms2900 KiB
14Accepted1/117ms2876 KiB
15Accepted1/117ms2864 KiB
16Accepted2/2186ms3744 KiB
17Accepted3/3186ms3776 KiB
18Accepted2/2182ms3616 KiB
19Accepted3/3180ms3640 KiB
20Accepted1/1180ms3744 KiB
21Accepted1/1180ms3640 KiB
22Accepted3/3182ms3652 KiB