146772025-01-27 12:55:14markfsibianÖntözés (50 pont)cpp17Wrong answer 1/5082ms596 KiB
#include <iostream>

using namespace std;

int a, b, x, y, h;

int main()
{
	int q, m;
	cin >> q >> m;
	for (int i = 1; i <= q; ++i)
	{
		cin >> a >> x >> b >> y;
		h = (24 * (b - a - 1)) - x + y;
		cout << (h - 1) / m << endl;
	}
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base1/50
1Wrong answer0/01ms316 KiB
2Wrong answer0/012ms316 KiB
3Wrong answer0/51ms316 KiB
4Wrong answer0/575ms596 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms388 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms396 KiB
9Wrong answer0/31ms316 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/11ms508 KiB
13Wrong answer0/11ms316 KiB
14Wrong answer0/11ms316 KiB
15Accepted1/11ms508 KiB
16Wrong answer0/279ms424 KiB
17Wrong answer0/382ms516 KiB
18Wrong answer0/279ms508 KiB
19Wrong answer0/379ms472 KiB
20Wrong answer0/179ms564 KiB
21Wrong answer0/175ms316 KiB
22Wrong answer0/381ms564 KiB