143642025-01-10 17:28:48ExtremeCreator20Járdakövezés (75 pont)cpp17Accepted 75/752ms548 KiB
#include <iostream>
using namespace std;

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