随笔分类 -  数据结构

P - Psychos in a Line 单调队列
摘要:P -Psychos in a LineTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusAppoint description:DescriptionThere arenpsychos standing in a line. Each psycho is assigned a unique integer from1ton. At each step every psycho who has an id greater than the psycho to his right 阅读全文

posted @ 2013-11-17 15:53 keep trying 阅读(260) 评论(0) 推荐(0)

A. Knight Tournament SET的应用
摘要:A. Knight Tournamenttime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputHooray! Berl II, the king of Berland is making a knight tournament. The king has already sent the message to all knights in the kingdom and they in turn agreed to participate in 阅读全文

posted @ 2013-11-07 20:26 keep trying 阅读(235) 评论(0) 推荐(0)

Cycling Roads URAL1966 并查集
摘要:1966. Cycling RoadsTime limit: 1.0 secondMemory limit: 64 MBWhen Vova was in Shenzhen, he rented a bike and spent most of the time cycling around the city. Vova was approaching one of the city parks when he noticed the park plan hanging opposite the central entrance. The plan had several marble stat 阅读全文

posted @ 2013-10-13 18:46 keep trying 阅读(256) 评论(1) 推荐(0)

导航