98352024-03-11 13:42:4342Öntözés (50 pont)python3Accepted 50/50216ms13848 KiB
Q,M=[int(x) for x in input().split()]

for i in range(Q):
    A,x,B,y=[int(xx) for xx in input().split()]
    d=(B-A-1)*24+24-x+y-1
    print(d//M,end="\r\n")
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/017ms11080 KiB
2Accepted0/045ms11532 KiB
3Accepted5/517ms11424 KiB
4Accepted5/5196ms11544 KiB
5Accepted3/317ms11880 KiB
6Accepted3/317ms11740 KiB
7Accepted3/317ms12116 KiB
8Accepted3/317ms11972 KiB
9Accepted3/318ms12144 KiB
10Accepted3/317ms12332 KiB
11Accepted3/317ms12648 KiB
12Accepted1/118ms12708 KiB
13Accepted1/117ms12732 KiB
14Accepted1/118ms12852 KiB
15Accepted1/118ms13292 KiB
16Accepted2/2202ms13364 KiB
17Accepted3/3208ms12820 KiB
18Accepted2/2216ms13080 KiB
19Accepted3/3203ms13516 KiB
20Accepted1/1208ms13508 KiB
21Accepted1/1207ms13508 KiB
22Accepted3/3201ms13848 KiB