219922026-01-14 12:21:30FriÖntözés (50 pont)cpp17Wrong answer 0/501ms512 KiB
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ifstream cin("in.txt");
    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) * 24 + y - x <= m) cout << "0\n";
        else cout << ((b - a) * 24 + y - x) / m << "\n";
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms316 KiB
2Wrong answer0/01ms332 KiB
3Wrong answer0/51ms512 KiB
4Wrong answer0/51ms316 KiB
5Wrong answer0/31ms404 KiB
6Wrong answer0/31ms500 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms384 KiB
9Wrong answer0/31ms316 KiB
10Wrong answer0/31ms500 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/11ms316 KiB
13Wrong answer0/11ms316 KiB
14Wrong answer0/11ms316 KiB
15Wrong answer0/11ms316 KiB
16Wrong answer0/21ms316 KiB
17Wrong answer0/31ms508 KiB
18Wrong answer0/21ms316 KiB
19Wrong answer0/31ms316 KiB
20Wrong answer0/11ms316 KiB
21Wrong answer0/11ms316 KiB
22Wrong answer0/31ms316 KiB