Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

。。。stl的set也可以解决..

Posted by TangMing at 2009-08-14 17:12:43 on Problem 2051
每次找到set的begin元素->输出set的begin元素->重新计算新一个元素->set中删除这个begin元素->插入新计算出来的元素。。over(set的结构体里面定义一个id,first_time(初始时间),time(计算后的时间),time由小到大排序,id由小到大辅排)

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator