题解
2025-05-11 10:19:20
发布于:上海
18阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x;
cin>>x;
int s=x/4;
int y=x%4;
if(y0)
{
cout<<"0 0 "<<s;
}
if(y1)
{
cout<<"0 1 "<<s-1;
}
if(y2)
{
cout<<"1 0 "<<s-1;
}
if(y3)
{
if(s>=2)
{
cout<<"1 1 "<<s-2;
}
else
{
cout<<"1 0 "<<s-1;
}
}
}
这里空空如也
有帮助,赞一个