- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 HDU 6011 Lotus and Characters
传送门 解题思路:根据排序不等式,显然应该把字母从小往大放。 一种错误的做法是把正权值的字母取出来从前往后放。错误是因为负权的也可能出现在答案中:放在最前面来使后面每个字母的贡献都增加。 正确的做法是把字母从大往小从后往前放,如果加入该字母后答案变劣就停下来。 /* *********************************************** ┆ ┏┓
2017-01-21 22:39:07 391
原创 CF758 C. Unfair Poll (模拟)
传送门 C. Unfair Poll time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output On the Literature less
2017-01-20 19:26:40 599
原创 CF758 B. Blown Garland (模拟)
传送门 B. Blown Garland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Nothing is eternal i
2017-01-20 02:34:14 731
原创 CF758 A. Holiday Of Equality (水题)
传送门 A. Holiday Of Equality time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output In Berland
2017-01-20 02:21:21 705
原创 CF437 B. The Child and Set(贪心)
传送门 B. The Child and Set time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output At the children'
2017-01-12 15:12:01 412
哈夫曼编码译码器
2015-12-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人