A. Captain Flint and Crew Recruitment
生活随笔
收集整理的這篇文章主要介紹了
A. Captain Flint and Crew Recruitment
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
原題連接
簡(jiǎn)單貪心
#include <bits/stdc++.h> using namespace std;int main() {int t;cin >> t;while(t--) {int n;cin >> n;// 6 10 14if(n <= 30) {cout << "NO" << endl;continue;}cout << "YES" << endl;if(n - 30 == 6 || n - 30 == 10 || n - 30 == 14)cout << 6 << " " << 10 << " " << 15 << " " << n - 31 << endl;elsecout << 6 << " " << 10 << " " << 14 << " " << n - 30 << endl;}return 0; }總結(jié)
以上是生活随笔為你收集整理的A. Captain Flint and Crew Recruitment的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Mr.Captain东:HTML+CSS
- 下一篇: client-go实战之二:RESTCl