Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
水水更健康#include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main(){ int i,j,k; scanf("%d",&j); for(i = 0;i<j; i++){ int a[10]={0}; for(k = 0;k<=10;k++){ scanf("%d",&a[k]); } sort(a+1,a+11); printf("%d %d\n",i+1,a[8]); } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator