215902026-01-13 16:58:35algoproJárdakövezés (75 pont)cpp17Accepted 75/751ms540 KiB
// UUID: c2ac2313-71c0-42ab-b959-ff642aed7b70
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int harmas = n / 3;
    if (n % 3 == 0){
        cout << 0 << " " << harmas;
    } else if (n % 3 == 1){
        cout << 2 << " " << harmas-1;
    } else {
        cout << 1 << " " << harmas;
    }

}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/01ms500 KiB
2Accepted0/01ms316 KiB
3Accepted3/31ms500 KiB
4Accepted3/31ms316 KiB
5Accepted3/31ms316 KiB
6Accepted3/31ms316 KiB
7Accepted3/31ms316 KiB
8Accepted4/41ms508 KiB
9Accepted4/41ms540 KiB
10Accepted4/41ms316 KiB
11Accepted4/41ms316 KiB
12Accepted4/41ms316 KiB
13Accepted4/41ms316 KiB
14Accepted4/41ms316 KiB
15Accepted4/41ms508 KiB
16Accepted4/41ms508 KiB
17Accepted4/41ms316 KiB
18Accepted4/41ms316 KiB
19Accepted4/41ms316 KiB
20Accepted4/41ms316 KiB
21Accepted4/41ms316 KiB
22Accepted4/41ms324 KiB