153402025-02-18 19:06:59zsombÖntözés (50 pont)cpp17Wrong answer 0/5081ms604 KiB
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int Q;
    int K;
    cin >> Q >> K;

    for (int i = 0; i < Q; i++)
    {
        int a, b, x, y;
        cin >> a >> x >> b >> y;
        int v = (b * 24 + y) - (a * 24 + x);
        cout << int((v / K) - 0.00000000001) << endl;
    }
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms316 KiB
2Wrong answer0/013ms316 KiB
3Wrong answer0/52ms316 KiB
4Wrong answer0/575ms564 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms316 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/11ms316 KiB
13Wrong answer0/11ms316 KiB
14Wrong answer0/11ms396 KiB
15Wrong answer0/11ms316 KiB
16Wrong answer0/281ms552 KiB
17Wrong answer0/379ms424 KiB
18Wrong answer0/281ms408 KiB
19Wrong answer0/378ms564 KiB
20Wrong answer0/179ms604 KiB
21Wrong answer0/178ms508 KiB
22Wrong answer0/381ms564 KiB