摘要: Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36313 Accepted Submission(s): 17713 P 阅读全文
posted @ 2017-11-07 17:51 LiebeCelery 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Color the ball Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23815 Accepted Submission(s): 1157 阅读全文
posted @ 2017-11-05 14:40 LiebeCelery 阅读(123) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-11-05 14:30 LiebeCelery 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.访问 下标访问"[]" 和at()方法两种方式,推荐第二种方法,它会进行边界检查。 对于map<string, int>map_str;其访问方式为: map_str["firstel"];或者map_str.at("firstel"); // 返回键值firstel对应的值 int size( 阅读全文
posted @ 2017-10-12 18:14 LiebeCelery 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Virtual Friends Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9655 Accepted Submission(s): 2820 阅读全文
posted @ 2017-10-12 17:50 LiebeCelery 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 优先队列:顾名思义,首先它是一个队列,但是它强调了“优先”二字,所以,已经不能算是一般意义上的队列了,它的“优先”意指取队首元素时,有一定的选择性,即根据元素的属性选择某一项值最优的出队~ 百度百科上这样描述的: 优先级队列 是不同于先进先出队列的另一种队列。每次从队列中取出的是具有最高优先权的元素 阅读全文
posted @ 2017-07-28 14:30 LiebeCelery 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 湫湫减肥 越减越肥! 最近,减肥失败的湫湫为发泄心中郁闷,在玩一个消灭免子的游戏。 游戏规则很简单,用箭杀死免子即可。 箭是一种消耗品,已知有M种不同类型的箭可以选择,并且每种箭都会对兔子造成伤害,对应的伤害值分别为Di(1 <= i <= M),每种箭需要一定的QQ币购买。 假设每种箭只能使用一次 阅读全文
posted @ 2017-07-28 14:26 LiebeCelery 阅读(137) 评论(0) 推荐(0) 编辑
摘要: B. Beautiful Paintings time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Beautiful Paint 阅读全文
posted @ 2017-07-04 17:35 LiebeCelery 阅读(497) 评论(0) 推荐(0) 编辑
摘要: Solve the equation: p*e-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0 where 0 <= x <= 1. Input Input consists of multiple test cases and terminate 阅读全文
posted @ 2017-07-04 17:16 LiebeCelery 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 458. Poor Pigs There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drin 阅读全文
posted @ 2017-05-29 20:44 LiebeCelery 阅读(135) 评论(0) 推荐(0) 编辑