96212024-02-23 14:45:42TortelliniJrJárdakövezés (75 pont)cpp17Accepted 75/753ms3620 KiB
#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
	if (n % 3 == 0)
	{
		cout << "0 " << n / 3;
	}
	else if (n%3 == 1)
	{
		cout << "2 " << n / 3 - 1;
	}
	else
	{
		cout << "1 " << n / 3;
	}
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/03ms2024 KiB
2Accepted0/03ms2184 KiB
3Accepted3/33ms2204 KiB
4Accepted3/33ms2328 KiB
5Accepted3/33ms2364 KiB
6Accepted3/33ms2496 KiB
7Accepted3/33ms2580 KiB
8Accepted4/43ms2728 KiB
9Accepted4/43ms2972 KiB
10Accepted4/43ms3184 KiB
11Accepted4/43ms3276 KiB
12Accepted4/43ms3532 KiB
13Accepted4/43ms3500 KiB
14Accepted4/43ms3504 KiB
15Accepted4/43ms3508 KiB
16Accepted4/43ms3620 KiB
17Accepted4/43ms3520 KiB
18Accepted4/43ms3516 KiB
19Accepted4/43ms3524 KiB
20Accepted4/43ms3532 KiB
21Accepted4/43ms3496 KiB
22Accepted4/43ms3500 KiB