RochambeauTime Limit:5000MSMemory Limit:65536KTotal Submissions:1603Accepted:556DescriptionNchildren are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three groups (it is possible that some group is empty). You don’t know who is Read More
posted @ 2013-04-14 16:08 free斩 Views(216) Comments(0) Diggs(0) Edit
Connections in Galaxy WarTime Limit:3 Seconds Memory Limit:32768 KBIn order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional tunnels to exchange messages. However, when the Galaxy War began, some tunnels were destroyed by the monsters from another Read More
posted @ 2013-04-14 14:41 free斩 Views(256) Comments(0) Diggs(1) Edit
How Many Answers Are WrongTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1384Accepted Submission(s): 562Problem DescriptionTT and FF are ... friends. Uh... very very good friends -________-bFF is a bad boy, he is always wooing TT to play the follo Read More
posted @ 2013-04-14 13:31 free斩 Views(359) Comments(1) Diggs(0) Edit
题意:给你 N 件不同的商品,每件商品最多可以买一次。 每件物品对应两个值 pi di pi 表示物品的价值,di 表示可以买的最迟时间(也就是第一天到第 di 天都可以买这件物品) 规定:每天最多可以买一件物品,问你可以得到的最大价值。算法:贪心 看了KB神的题解,他用的并查集,等下贴个代码。思路【贪心版本】:将物品按照价值从大到小排序 依次枚举每件物品 从可以买的最后一天枚举,看是否可以买 注意:标记天数。思路【KB的并查集版本】:将物品按照价值从大到小排序 处理的时候选择最后的一个不冲突点。 ... Read More
posted @ 2013-04-14 12:41 free斩 Views(261) Comments(0) Diggs(0) Edit
A Bug's LifeTime Limit:10000MSMemory Limit:65536KTotal Submissions:23484Accepted:7639DescriptionBackgroundProfessor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender Read More
posted @ 2013-04-14 12:13 free斩 Views(156) Comments(0) Diggs(0) Edit