220002026-01-14 12:28:01FriÖntözés (50 pont)cpp17Wrong answer 3/5082ms684 KiB
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    int q, m, a, x, b, y;
    cin >> q >> m;
    for (int i = 0; i < q; i++) {
        cin >> a >> x >> b >> y;
        if ((b - a - 1) * 24 + y + 24 - x % m == 0) cout << ((b - a - 1) * 24 + y + 24 - x) / m - 1 << "\n";
        else cout << ((b - a - 1) * 24 + y + 24 - x) / m << "\n";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base3/50
1Wrong answer0/01ms508 KiB
2Wrong answer0/013ms508 KiB
3Wrong answer0/51ms316 KiB
4Wrong answer0/576ms564 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms324 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms316 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/11ms316 KiB
13Accepted1/11ms316 KiB
14Accepted1/11ms316 KiB
15Accepted1/11ms316 KiB
16Wrong answer0/281ms376 KiB
17Wrong answer0/382ms548 KiB
18Wrong answer0/282ms440 KiB
19Wrong answer0/379ms684 KiB
20Wrong answer0/176ms564 KiB
21Wrong answer0/174ms316 KiB
22Wrong answer0/375ms564 KiB