[NOIP2013]火柴排队

Grade Open Time Friday, 19 September 2014, 10:07 am
Discount 0.8 Time Discount Friday, 26 September 2014, 10:07 am
Allow late Yes Close Time Friday, 26 September 2014, 10:07 am
Input file MatchNOIP2013.in Output file MatchNOIP2013.out

【题目描述】

样例一输入:

4

2 3 1 4

3 2 1 4

样例二输入:

4

1 3 4 2

1 7 2 4

【输入格式】MatchNOIP2013.in

输入格式改为 MatchNOIP2013.in

【输出格式】MatchNOIP2013.out

输出格式改为 MatchNOIP2013.out


【来源】

CCF全国信息学奥林匹克联赛 (NOIP2013)复赛Day1