forwhat00  
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int t;
    scanf("%d",&t);
    for(int i=0;i<t;i++)
    {
        int x;
        scanf("%d",&x);
        if(x>30){
            if(x!=36 && x!=40 && x!=44)
                printf("YES\n6 10 14 %d\n",x-30);
            else  printf("YES\n6 10 15 %d\n",x-31);
        }else{
            printf("NO\n");
        }
    }
}

https://vjudge.net/contest/387172#problem/A

posted on 2020-08-06 13:49  forwhat00  阅读(112)  评论(0编辑  收藏  举报