标签:des style blog http color java os io
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 0 Accepted Submission(s): 0
1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 #include <climits> 7 #include <vector> 8 #include <queue> 9 #include <cstdlib> 10 #include <string> 11 #include <set> 12 #include <stack> 13 #define LL long long 14 #define INF 0x3f3f3f3f 15 using namespace std; 16 int d[8],n; 17 int main() { 18 int t,i,j,grapa,mzry; 19 scanf("%d",&t); 20 while(t--){ 21 for(i = 0;i < 6; i++) 22 scanf("%d",d+i); 23 sort(d,d+6); 24 grapa = d[5]+d[4]; 25 mzry = d[3]+d[2]+d[1]; 26 if(grapa > mzry){ 27 puts("Grandpa Shawn is the Winner!"); 28 }else puts("What a sad story!"); 29 } 30 return 0; 31 }
Happy Three Friends,布布扣,bubuko.com
标签:des style blog http color java os io
原文地址:http://www.cnblogs.com/crackpotisback/p/3903610.html