125262024-12-21 15:08:14PappMatyasJárdakövezés (75 pont)cpp17Accepted 75/751ms756 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n % 3 == 1)
    {
        cout << 2 << " " << n/3-1;
    }
    else if(n % 3 == 2)
    {
        cout << 1 << " " << n/3;
    }
    else
    {
        cout << 0 << " " << n/3;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/01ms320 KiB
2Accepted0/01ms500 KiB
3Accepted3/31ms320 KiB
4Accepted3/31ms508 KiB
5Accepted3/31ms320 KiB
6Accepted3/31ms320 KiB
7Accepted3/31ms320 KiB
8Accepted4/41ms320 KiB
9Accepted4/41ms392 KiB
10Accepted4/41ms320 KiB
11Accepted4/41ms320 KiB
12Accepted4/41ms320 KiB
13Accepted4/41ms320 KiB
14Accepted4/41ms320 KiB
15Accepted4/41ms320 KiB
16Accepted4/41ms508 KiB
17Accepted4/41ms320 KiB
18Accepted4/41ms320 KiB
19Accepted4/41ms568 KiB
20Accepted4/41ms756 KiB
21Accepted4/41ms320 KiB
22Accepted4/41ms320 KiB