128432025-01-02 11:33:51PKBJárdakövezés (75 pont)cpp17Wrong answer 34/751ms576 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int hossz;
	cin >> hossz;

	cin >> hossz;

	int lekovezett = 0;

	int harmas = 0;
	int kettes = 0;

	while (lekovezett < hossz) {
		if (hossz - lekovezett > 5) {
			lekovezett += 3;
			harmas++;
		} else {
			lekovezett += 2;
			kettes++;
		}
	}

	cout << kettes << " " << harmas;
}
SubtaskSumTestVerdictTimeMemory
base34/75
1Accepted0/01ms320 KiB
2Wrong answer0/01ms576 KiB
3Wrong answer0/31ms500 KiB
4Accepted3/31ms320 KiB
5Wrong answer0/31ms552 KiB
6Wrong answer0/31ms320 KiB
7Accepted3/31ms320 KiB
8Wrong answer0/41ms560 KiB
9Accepted4/41ms320 KiB
10Wrong answer0/41ms320 KiB
11Wrong answer0/41ms508 KiB
12Accepted4/41ms320 KiB
13Wrong answer0/41ms320 KiB
14Wrong answer0/41ms320 KiB
15Wrong answer0/41ms320 KiB
16Accepted4/41ms320 KiB
17Accepted4/41ms320 KiB
18Accepted4/41ms556 KiB
19Accepted4/41ms500 KiB
20Wrong answer0/41ms320 KiB
21Wrong answer0/41ms320 KiB
22Accepted4/41ms320 KiB