143602025-01-10 17:22:52AronBJárdakövezés (75 pont)cpp17Wrong answer 49/752ms508 KiB
#include <bits/stdc++.h>

using namespace std;

int main()
{
    //cout << "Adj meg egy szamot!" << endl;
    int n;
    cin >> n;
    if (n%3 == 0){
        cout << n/3;
    }
    if(n%3 == 2) {
        cout << 1 << " " << n/3;
    }
    if (n%3 == 1) {
        cout << 2 << " " << n/3 - 1;
    }

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base49/75
1Accepted0/01ms500 KiB
2Accepted0/01ms316 KiB
3Wrong answer0/31ms500 KiB
4Accepted3/31ms316 KiB
5Accepted3/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Accepted3/31ms316 KiB
8Accepted4/41ms508 KiB
9Accepted4/41ms316 KiB
10Accepted4/41ms316 KiB
11Wrong answer0/41ms316 KiB
12Accepted4/41ms368 KiB
13Wrong answer0/41ms316 KiB
14Wrong answer0/41ms316 KiB
15Wrong answer0/41ms316 KiB
16Accepted4/41ms500 KiB
17Accepted4/41ms500 KiB
18Accepted4/41ms496 KiB
19Accepted4/41ms508 KiB
20Accepted4/41ms316 KiB
21Wrong answer0/42ms500 KiB
22Accepted4/41ms508 KiB