108062024-04-15 00:09:09norbertvidaÖntözés (50 pont)cpp11Accepted 50/5017ms4532 KiB
#include <bits/stdc++.h>

using namespace std;

int main() {
    cin.tie(0)->sync_with_stdio(0);
    int Q, M;
    cin >> Q >> M;
    int A, x, B, y;
    for(int q = 0; q < Q; ++q) {
        cin >> A >> x >> B >> y;
        cout << (B * 24 + y - A * 24 - x - 1) / M << "\n";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base50/50
1Accepted0/03ms1892 KiB
2Accepted0/04ms2240 KiB
3Accepted5/53ms2440 KiB
4Accepted5/517ms2672 KiB
5Accepted3/33ms2844 KiB
6Accepted3/33ms2860 KiB
7Accepted3/33ms2896 KiB
8Accepted3/33ms2896 KiB
9Accepted3/33ms2908 KiB
10Accepted3/33ms2916 KiB
11Accepted3/33ms2944 KiB
12Accepted1/13ms3124 KiB
13Accepted1/13ms3332 KiB
14Accepted1/13ms3416 KiB
15Accepted1/13ms3412 KiB
16Accepted2/217ms3452 KiB
17Accepted3/317ms3688 KiB
18Accepted2/217ms3804 KiB
19Accepted3/317ms3988 KiB
20Accepted1/117ms4140 KiB
21Accepted1/116ms4228 KiB
22Accepted3/317ms4532 KiB