135202025-01-08 09:20:13NeMÖntözés (50 pont)cpp17Wrong answer 0/5083ms564 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int t, m;
	cin >> t >> m;
	
	for (int q = 0; q < t; q++) {
		int A, x, B, y;
		cin >> A >> x >> B >> y;

		int c = (((B*24)+y)-((A*24)+x)-1)/m;
		if (m%(((B*24)+y)-((A*24)+x)-1) > 0) {
			c++;
			cout << 'x' << ' ';
		}
		cout << --c << endl;
	}

	return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Wrong answer0/01ms316 KiB
2Wrong answer0/013ms508 KiB
3Wrong answer0/51ms316 KiB
4Wrong answer0/576ms448 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/11ms508 KiB
13Wrong answer0/11ms368 KiB
14Wrong answer0/11ms316 KiB
15Wrong answer0/11ms316 KiB
16Wrong answer0/283ms468 KiB
17Wrong answer0/382ms516 KiB
18Wrong answer0/282ms452 KiB
19Wrong answer0/383ms552 KiB
20Wrong answer0/183ms564 KiB
21Wrong answer0/179ms472 KiB
22Wrong answer0/381ms564 KiB