bird_秒切橙题 @ 2020-05-24 11:37:59
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n==0)
{
cout<<"0 0 0";
}
if(n<=2||n==5)
{
cout<<-1;
return 0;
}
int a=n/14;
n%=14;
int b=a,c=a;
if(n%3==1){
b++;
c+=n/3-1;
}
else if(n%3==2){
b+=2;
c+=n/3-2;
}
else
c+=n/3;
cout<<a<<" "<<b<<" "<<c;
return 0;
}
by donghanwen1225 @ 2020-05-24 12:06:04
你输入33输出2 4 1,然而正确的是1 2 6 (2+4+1=7,1+2+6=9,7<9)
by bird_秒切橙题 @ 2020-05-24 12:08:08
AC了我厉害吧!秒切橙题不是盖的
by donghanwen1225 @ 2020-05-24 12:08:33
……话说你这ctrl+c我的std可还舒服
by critnos @ 2020-05-24 12:14:22
@small_bird 哈哈哈哈抄题解舒服吗
by critnos @ 2020-05-24 12:14:35
@M652 来了来了
by critnos @ 2020-05-24 12:15:27
来我们看看这位小朋友的评测记录
https://www.luogu.com.cn/record/33846094
点进题解一看?诶,怎么和第一篇一样?
by PRAGMATISM @ 2020-05-24 12:16:36
@26535 我知道了,他可能是色盲(((
by Alarm5854 @ 2020-05-24 12:17:03
狗 急 跳 墙
by PRAGMATISM @ 2020-05-24 12:20:17
白内障,看不清,液态汞来滴眼睛
by k3v1n070828 @ 2020-05-24 19:27:03
@small_bird 感谢您对小M新闻做出的贡献