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 ZhangJiahao0918 @ 2020-05-24 11:49:48
hsslm
by critnos @ 2020-05-24 11:50:01
白内障,看不清,高锰酸钾滴眼睛
hsslm
by critnos @ 2020-05-24 11:50:20
@small_bird 我是棕名,我看不清,来喷我吧(
by _tommysun_ @ 2020-05-24 11:50:22
要是这样的话这题是什么题?深黄色题吗?zz小学生真有意思
by donghanwen1225 @ 2020-05-24 11:50:31
@zhy137036 呃,或许只是我想多了
by Alarm5854 @ 2020-05-24 11:50:54
文明观猴
by k3v1n070828 @ 2020-05-24 11:51:20
xxs真有意思
@small_bird : 我切不出来的题都不是橙题!
by bird_秒切橙题 @ 2020-05-24 11:51:33
我问你们哪里错了怎么这么多乱七八糟的
by k3v1n070828 @ 2020-05-24 11:51:37
ok,开始写新闻了(
by _tommysun_ @ 2020-05-24 11:51:46
先滚回家学好哪个是黄色哪个是橙色再来bbOK?