您的位置:首页 > 移动开发

hdu 4931 /BC 4A Happy Three Friends

2015-08-09 10:35 148 查看
水到没话说
#include <iostream>
#include <cstring>
#include <string>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include<stack>
#define inf 0x3f3f3f3f
#define ll long long
#define mod 1000000007
using namespace std;
#define bug puts("bugbugubgbugbug")
int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        int a[10];
        for(int i=0;i<6;i++)
            scanf("%d",&a[i]);
        sort(a,a+6);
        if(a[5]+a[4]>a[3]+a[2]+a[1])
            puts("Grandpa Shawn is the Winner!");
        else puts("What a sad story!");
    }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: