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:太水了,两分钟写完代码AC

Posted by 452565221 at 2022-03-03 13:04:16 on Problem 2388
In Reply To:太水了,两分钟写完代码AC Posted by:986677841 at 2016-04-20 13:42:50
> #include<iostream>
> #include<cstdlib>
> #include<cstdio>
> #include<algorithm>
> using namespace std;
> const int maxn=10000+10;
> int p[maxn]; 
> int main(){
>     int n;
>     cin>>n;
>     for(int i=0;i<n;i++)
>     cin>>p[i];
>     sort(p,p+n);
>     cout<<p[n/2];
>     
>     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