110362024-06-29 16:10:43KarolinaJárdakövezés (75 pont)cpp17Accepted 75/753ms632 KiB
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int h;
	int k;
	int s;
	int g;
	g = 2 - 4;
	s = 1 - 2;
	h = 0;
	k = 0;
	while (n>0)
	{
		n=n - 3;
		h++;

	}
	if (n==0)
	{
		cout << k <<" " << h;
	}
	if (n == s)
	{
		h = h - 1;
		k = k + 1;
		cout << k<<" " << h;
	}
	if (n==g)
	{
		h = h - 2;
		k = k + 2;
		cout << k <<" " << h;
	}

}


SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms356 KiB
2Accepted0/03ms384 KiB
3Accepted3/33ms356 KiB
4Accepted3/33ms500 KiB
5Accepted3/33ms356 KiB
6Accepted3/33ms356 KiB
7Accepted3/33ms384 KiB
8Accepted4/42ms632 KiB
9Accepted4/42ms356 KiB
10Accepted4/42ms356 KiB
11Accepted4/43ms400 KiB
12Accepted4/43ms384 KiB
13Accepted4/42ms368 KiB
14Accepted4/43ms384 KiB
15Accepted4/43ms320 KiB
16Accepted4/43ms256 KiB
17Accepted4/43ms504 KiB
18Accepted4/43ms356 KiB
19Accepted4/42ms228 KiB
20Accepted4/42ms492 KiB
21Accepted4/43ms256 KiB
22Accepted4/43ms616 KiB