243172026-02-08 20:35:41algoproJárdakövezés (75 pont)cpp17Wrong answer 3/752ms508 KiB
// UUID: 1b8b8447-e79d-4cfb-98de-711ae0c8c85a
#include <bits/stdc++.h>
using namespace std;

int main() {
	int hossz, harmas, kettes;
cin>>hossz;
if(hossz%3==0){
	harmas = hossz/3;
	kettes =0;
}
else if(hossz%3==1){
	harmas = (hossz-4)/3;
	kettes =2;
}
else{
	harmas = (hossz-2)/3;
	kettes = 1;
}
if(harmas>0 and kettes >0){
	cout<<harmas<<" "<<kettes;
}
else if(harmas>0 and kettes ==0){
	cout<<harmas;
}
else if(kettes>0 and harmas==0){
	cout<<kettes;
}


}
SubtaskSumTestVerdictTimeMemory
base3/75
1Accepted0/01ms316 KiB
2Wrong answer0/01ms316 KiB
3Wrong answer0/31ms316 KiB
4Wrong answer0/31ms500 KiB
5Wrong answer0/31ms316 KiB
6Wrong answer0/31ms316 KiB
7Accepted3/31ms316 KiB
8Wrong answer0/41ms316 KiB
9Wrong answer0/41ms508 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/41ms332 KiB
17Wrong answer0/42ms316 KiB
18Wrong answer0/41ms316 KiB
19Wrong answer0/41ms388 KiB
20Wrong answer0/41ms316 KiB
21Wrong answer0/41ms316 KiB
22Wrong answer0/41ms316 KiB