143582025-01-10 17:21:22AronBJárdakövezés (75 pont)cpp17Wrong answer 3/751ms532 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 << n/3 << " " << 1;
    }
    if (n%3 == 1) {
        cout << n/3 - 1 << " " << 2;
    }

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