【水题】HDU4931Happy Three Friends【BestCoder Round #4】
来源:互联网 发布:淘宝小额借贷 编辑:程序博客网 时间:2024/05/16 05:17
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4931
#include<iostream>#include<algorithm>using namespace std;int a[10];int main(){ int t; cin>>t; while(t--){ for(int i=0;i<6;i++){ cin>>a[i]; } sort(a,a+6); int Max=a[5]+a[4]; int Min=a[3]+a[2]+a[1]; if(Max>Min) cout<<"Grandpa Shawn is the Winner!"<<endl; else cout<<"What a sad story!"<<endl; } return 0;}
阅读全文
0 0
- 【水题】HDU4931Happy Three Friends【BestCoder Round #4】
- BestCoder Round #4(Happy Three Friends-贪心)
- [BestCoder Round #4] hdu 4931 Happy Three Friends
- hdu4931 Happy Three Friends(BestCoder Round#4签到题)
- HDU 4931 Happy Three Friends(水题)——BestCoder Round #4
- BestCoder Round #49 ($) HDOJ5340 Three Palindromes(暴力)
- BestCoder Round #4 题解
- [BestCoder] Round #4
- BestCoder Round #4
- HDU 5340 Three Palindromes ——BestCoder Round #49
- BestCoder Round #49 Three Palindromes 即 hdu5340 (manacher算法)
- BestCoder Round #49 ($) HDU 5340 Three Palindromes(1002)
- BestCoder Round #49 HDU5340 Three Palindromes Manacher算法
- hdu 4931 Happy Three Friends(水题)
- HDOJ4931 - Happy Three Friends
- hdoj4931Happy Three Friends
- [4931]:Happy Three Friends
- hdu 4931 /BC 4A Happy Three Friends
- Xcode更新QT Creator无法构建
- Unity3D白皮书(二)纹理导入设置
- goose house 光るなら 若能绽放光芒 平仮名 平假名 假名 标注 注音 歌词
- window.open()打开窗口的几种方式
- ActiveMQ消息的同步和异步
- 【水题】HDU4931Happy Three Friends【BestCoder Round #4】
- 初识nodejs9
- GTK学习(2)-布局管理
- 646. Maximum Length of Pair Chain/640. Solve the Equation
- [BZOJ]4129: Haruna’s Breakfast 树上带修改莫队+分块
- 泛型 Treeset的排序
- flask学习地址
- 完美兼容各版本IE的JQuery时间插件
- 集成Android免费语音合成功能(在线、离线、离在线融合),有这一篇文章就够了(离线)