| ||||||||||
| 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 | |||||||||
Re:请教大家一个算法In Reply To:Re:请教大家一个算法 Posted by:cg7 at 2010-01-06 20:29:02 另外的方法: 对每组数,计算一个元素和它下一个的差.用这个得到的m个数组建立一个胜者数. 每次选择差最小的剔除,n次计算得到的就是结果... 胡乱想的,轻拍. 其实如果不要求效率,对这n组数的下标进行排续标定,然后从最大的位置开始,按序找 n个最先出现的,属于n个不同数组的数,然后.... Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator