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 |
。。。stl的set也可以解决..每次找到set的begin元素->输出set的begin元素->重新计算新一个元素->set中删除这个begin元素->插入新计算出来的元素。。over(set的结构体里面定义一个id,first_time(初始时间),time(计算后的时间),time由小到大排序,id由小到大辅排) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator