146762025-01-27 12:51:47markfsibianÖntözés (50 pont)cpp17Wrong answer 1/5082ms600 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 - 2) / m << endl;
	}
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base1/50
1Wrong answer0/01ms500 KiB
2Wrong answer0/013ms500 KiB
3Wrong answer0/51ms316 KiB
4Wrong answer0/575ms564 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/31ms316 KiB
9Wrong answer0/31ms364 KiB
10Wrong answer0/31ms316 KiB
11Wrong answer0/31ms316 KiB
12Wrong answer0/12ms316 KiB
13Wrong answer0/11ms316 KiB
14Wrong answer0/11ms500 KiB
15Accepted1/11ms316 KiB
16Wrong answer0/282ms472 KiB
17Wrong answer0/382ms580 KiB
18Wrong answer0/279ms436 KiB
19Wrong answer0/378ms564 KiB
20Wrong answer0/179ms600 KiB
21Wrong answer0/179ms508 KiB
22Wrong answer0/382ms492 KiB