121612024-12-05 23:11:56KezdőÖntözés (50 pont)python3Accepted 50/50203ms3320 KiB
N,M = [int(i) for i in input().split()]
for i in range(N):
    A,x,B,y = [int(i) for i in input().split()]
    t = (B-1)*24 + y - ((A-1)*24 + x) - 1
    print(t//M)

SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms2864 KiB
2Accepted0/041ms3116 KiB
3Accepted5/517ms2872 KiB
4Accepted5/5188ms3320 KiB
5Accepted3/317ms3300 KiB
6Accepted3/317ms2944 KiB
7Accepted3/316ms2892 KiB
8Accepted3/316ms2992 KiB
9Accepted3/316ms2872 KiB
10Accepted3/317ms2872 KiB
11Accepted3/317ms2872 KiB
12Accepted1/117ms2872 KiB
13Accepted1/117ms3088 KiB
14Accepted1/117ms3076 KiB
15Accepted1/116ms3084 KiB
16Accepted2/2203ms3232 KiB
17Accepted3/3197ms3092 KiB
18Accepted2/2192ms3132 KiB
19Accepted3/3193ms3264 KiB
20Accepted1/1194ms3128 KiB
21Accepted1/1187ms2972 KiB
22Accepted3/3188ms3084 KiB