119792024-11-22 15:19:07kbarnabasÖntözés (50 pont)python3Accepted 50/50208ms3292 KiB
q,m = [int(i) for i in input().split()]

for i in range(q):
    a,x,b,y = [int(i) for i in input().split()]

    kulonbseg = ((b-1)*24+y)-((a-1)*24+x)-1 #ket nap orainak kulonbsege

    print(kulonbseg//m)

    
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms3068 KiB
2Accepted0/041ms3120 KiB
3Accepted5/517ms2872 KiB
4Accepted5/5187ms3100 KiB
5Accepted3/317ms3072 KiB
6Accepted3/316ms3072 KiB
7Accepted3/317ms2876 KiB
8Accepted3/317ms2872 KiB
9Accepted3/317ms2856 KiB
10Accepted3/317ms3064 KiB
11Accepted3/316ms2872 KiB
12Accepted1/116ms2888 KiB
13Accepted1/116ms3088 KiB
14Accepted1/116ms3132 KiB
15Accepted1/116ms3044 KiB
16Accepted2/2196ms3128 KiB
17Accepted3/3208ms3292 KiB
18Accepted2/2192ms3288 KiB
19Accepted3/3194ms3128 KiB
20Accepted1/1197ms3128 KiB
21Accepted1/1182ms3076 KiB
22Accepted3/3189ms3104 KiB