HDU 2561 hdoj 2561 second small integer ACM 2561 in HDU

Source: Internet
Author: User

Miyu original, post Please note: Reprinted from __________ White House

 

No questions,

 Code

/*
Mail to: miyubai@gamil.com
My blog: www. policyun. Me
Link: Http://www.cnblogs.com/MiYu | Http://www.cppblog.com/MiYu
Author by: miyu
Test: 1
Complier: G ++ mingw32-3.4.2
Program: hdu_2561
Doc name: Second small integer
*/
// # Pragma warning (Disable: 4789)
# Include < Iostream >
# Include < Fstream >
# Include < Sstream >
# Include < Algorithm >
# Include < String >
# Include < Set >
# Include < Map >
# Include < Utility >
# Include < Queue >
# Include < Stack >
# Include < List >
# Include < Vector >
# Include < Cstdio >
# Include < Cstdlib >
# Include < Cstring >
# Include < Cmath >
# Include < Ctime >
Using   Namespace STD;
Int A [ 20 ];
Int Main ()
{
Int T;
Scanf ( " % D " , & T );
While (T -- ){
Int N;
Scanf ( " % D " , & N );
For ( Int I =   0 ; I < N; ++ I ){
Scanf ( " % D " , + I );
}
Sort (a, + N );
Printf ( " % D \ n " , [ 1 ]);
}
Return   0 ;
}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.