137722025-01-08 17:49:16csalamihalyJárdakövezés (75 pont)cpp17Accepted 75/751ms500 KiB
#include<iostream>
using namespace std;

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