Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

水水更健康

Posted by wuwangnian at 2014-08-13 13:38:35 on Problem 3781
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator