123302024-12-12 17:27:28WellLeopardUsuallyÖntözés (50 pont)python3Accepted 50/50114ms4604 KiB
from math import floor
q, m = map(int, input().split())
output = []
for i in range(q):
    a, x, b, y = map(int, input().split())
    output.append(floor(((b-a-1)*24+(24-x)+y-1)/m))
for out in output:
    print(out)
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/016ms3144 KiB
2Accepted0/029ms3380 KiB
3Accepted5/516ms3320 KiB
4Accepted5/5111ms4592 KiB
5Accepted3/317ms3076 KiB
6Accepted3/317ms3076 KiB
7Accepted3/316ms3128 KiB
8Accepted3/317ms3188 KiB
9Accepted3/316ms3108 KiB
10Accepted3/316ms2924 KiB
11Accepted3/316ms2940 KiB
12Accepted1/117ms3072 KiB
13Accepted1/116ms3128 KiB
14Accepted1/116ms3108 KiB
15Accepted1/116ms2872 KiB
16Accepted2/2112ms4604 KiB
17Accepted3/3114ms4524 KiB
18Accepted2/2111ms4528 KiB
19Accepted3/3109ms4484 KiB
20Accepted1/1109ms4596 KiB
21Accepted1/1107ms3568 KiB
22Accepted3/3112ms4532 KiB