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

Re:其实本体不是很水。

Posted by y09shendazhi at 2009-08-12 11:27:34 on Problem 2388
In Reply To:Re:其实本体不是很水。 Posted by:y09shendazhi at 2009-08-12 11:25:52
> #include <iostream>
> 
#include<algorithm>
> using namespace std;
> 
> int main(int argc, char *argv[])
> {
> 	int a[10000]={0};
> 	int n=0;
> 	cin>>n;
> 	for(int i=0;i<n;i++)
> 		scanf("%d",&a[i]);
> 	sort(a,a+n);
> 	cout<<a[(n-1)/2]<<endl;	
> 	return 0;
> }
其实很垃圾的程序,竟然0ms,汗

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