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 lcyxds @ 2021-04-18 08:01:10
2021 第五铲
by __凉皮__ @ 2021-07-21 11:01:33
2021 第六铲
by Kali_linux @ 2022-02-17 19:27:16
2022第一铲
by Kali_linux @ 2022-02-17 19:27:48
火后刘明
by Kali_linux @ 2022-02-17 19:29:41
话说这算神贴吗?
by ch_en @ 2022-08-07 15:27:09
2022第二铲
by BlueTiger @ 2023-04-27 21:29:24
考古
by wilsonju @ 2023-07-23 13:43:20
2023 第2铲(考古)