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 _5011_ @ 2020-05-24 11:39:07
秒切橙题!
by Malody @ 2020-05-24 11:39:10
qpee
by Malody @ 2020-05-24 11:40:09
(能暴力为何要写标算?)
by bird_秒切橙题 @ 2020-05-24 11:40:20
@Zephyr_ 这又不是橙题
by Malody @ 2020-05-24 11:40:50
双重循环表示AC没压力
by _5011_ @ 2020-05-24 11:40:57
@small_bird 你是不是需要莎普爱思……这就是橙题……
by FZzzz @ 2020-05-24 11:41:03
@small_bird 眼睛不要可以捐给我(
by critnos @ 2020-05-24 11:41:16
秒切橙题!
by donghanwen1225 @ 2020-05-24 11:41:26
应该开个逆循环枚举你那个a,从n/14到0这样的,否则会有问题
by bird_秒切橙题 @ 2020-05-24 11:41:40
@FZzzz 那你说说哪里是橙题了