#include <cstdio> #include <algorithm> using namespace std; int p1,p2,a[6],T; int main(){ scanf("%d",&T); while(T--){ for(int i=0;i<6;i++)scanf("%d",&a[i]); sort(a,a+6); p1=a[4]+a[5]; p2=a[2]+a[3]+a[1]; if(p1>p2)puts("Grandpa Shawn is the Winner!"); else puts("What a sad story!"); } return 0; }
相关文章
- 01-07HDU5119 - Happy Matt Friends
- 01-07HDU 4931 Happy Three Friends
- 01-07HDU 4931 Happy Three Friends
- 01-07水题:HDU 5119 Happy Matt Friends
- 01-07HDU 5119 Happy Matt Friends
- 01-07HDU 5119 Happy Matt Friends
- 01-07Happy Matt Friends(HDU5119 + dp)
- 01-07BestCoder Round #4(Happy Three Friends-贪心)
- 01-07hdu4931 Happy Three Friends(BestCoder Round#4签到题)
- 01-07[BestCoder Round #4] hdu 4931 Happy Three Friends