Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
一次性AC,真难得,给个提示对正数和负数分别排序,用两个数组标示(0另外考虑) 先判断K是否为奇数,如果是,选中正数的最大的数,K就成偶数了 K为偶数时,判断最大两个正数的积与最小两个负数的积的大小,谁大选谁中的那两个数 本题就是0的情况比较烦人,需另外仔细考虑 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator