[BestCoder] Round #4
来源:互联网 发布:消防海湾主机编程实例 编辑:程序博客网 时间:2024/04/29 19:12
1001
http://acm.hdu.edu.cn/showproblem.php?pid=4931
#include <iostream>#include <stdio.h>#include <algorithm>#include <string.h>#include <stdlib.h>#include <cmath>#include <iomanip>#include <vector>#include <set>#include <map>#include <stack>#include <queue>#include <cctype>using namespace std;int s[6];int main(){ int t; cin>>t; while(t--) { for(int i=0;i<6;i++) cin>>s[i]; sort(s,s+6); if(s[4]+s[5]>s[1]+s[2]+s[3]) cout<<"Grandpa Shawn is the Winner!"<<endl; else cout<<"What a sad story!"<<endl; } return 0;}
0 0
- BestCoder Round #4 题解
- [BestCoder] Round #4
- BestCoder Round #4
- BestCoder Round #4(Happy Three Friends-贪心)
- BestCoder Round #4(Miaomiao's Geometry-贪心)
- BestCoder Round #38 (2/4)
- BestCoder Round #42(3/4)
- 【水题】HDU4931Happy Three Friends【BestCoder Round #4】
- BestCoder Round #3 BestCoder Sequence
- bestcoder round #1
- BestCoder round #1
- BestCoder Round #1
- 【索引】BestCoder Round #2
- BestCoder Round #2
- 【索引】BestCoder Round #3
- BestCoder Round #3
- BestCoder Round #3 小记
- BestCoder Round #6
- Linux flash 文件系统剖析
- ym——Android仿网易新闻导航栏PagerSlidingTabStrip源码分析
- C字符串输入输出
- 绘制SVG内容到Canvas的HTML5应用
- urllib2模块之异常处理
- [BestCoder] Round #4
- python 之 os
- __asm__ __volatile__("": : :"memory")
- java输出2至100内的质数
- 插入排序
- C语言关键字 (一)
- PB 如何把结构作为参数传递
- [BestCoder] Round #5
- CF #289 E. Pretty Song