其他分享
首页 > 其他分享> > Submit solution(1200)

Submit solution(1200)

作者:互联网

#include<bits/stdc++.h>
using namespace std;
int n,k;
int main(){
    int t;
    cin>>t;
    while(t--){
        scanf("%d %d",&n,&k);
        if(n%4==0){
            printf("%d %d %d\n",n/2,n/4,n/4);
        }
        else if(n%2==0){
            printf("2 %d %d\n",n/2-1,n/2-1);
        }
        else {
            printf("1 %d %d\n",n/2,n/2);
        }
    }
    return 0;
} 

 

标签:std,int,n%,solution,Submit,else,1200,printf,main
来源: https://www.cnblogs.com/happycrazy/p/15862760.html