http://acm.split.hdu.edu.cn/showproblem.php?pid=3076 ssworld VS DDD Problem Description One day, sssworld and DDD play games together, but there are s ...
分类:
其他好文 时间:
2016-08-21 11:01:25
阅读次数:
274
Everything you see exists together in a delicate balance. 你所看到的一切都处于微妙的平衡中。 Seeking for balance in life is very important. When you tackle with the af ...
分类:
其他好文 时间:
2016-08-20 19:14:11
阅读次数:
171
Your First MFC C++ Ribbon Application with Visual Studio 2010 Earlier this month, I put together my first C++ sample in about a hundred years. I did t ...
分类:
编程语言 时间:
2016-08-18 10:08:27
阅读次数:
510
题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=4888 Description Alice and Bob are playing together. Alice is crazy about art and she has visited ...
【题目大意】 n块巧克力,每次吃可以增加ai点快乐,每天早晨睡觉起来快乐值会减半,求如何使d天睡觉前的最小快乐值最大。 【思路】 二分每天的最小快乐值,只要没有达到快乐值就继续吃。 不知道为什么了WA了8发..8发??!!!!说好的水题呢??!!!而且我也不知道哪里错了反正突然AC了??!! ...
分类:
其他好文 时间:
2016-08-15 14:20:04
阅读次数:
118
bzoj2016[Usaco2010]Chocolate Eating 题意: n块巧克力,每次吃可以增加ai点快乐,每天早晨睡觉起来快乐值会减半,求如何使d天睡觉前的最小快乐值最大。n,d≤50000 题解: 二分快乐值,每天不够就吃。注意如果最后一天有剩余巧克力,必须将其全部吃完。 代码: 20 ...
分类:
其他好文 时间:
2016-08-15 07:52:01
阅读次数:
157
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.该题是要求合并两个... ...
分类:
其他好文 时间:
2016-08-15 00:05:51
阅读次数:
140
题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 分析:合 ...
分类:
编程语言 时间:
2016-08-13 20:57:41
阅读次数:
241
模式的定义适配器模式(Adapter Pattern)定义如下:Convert the interface of a class into another interface clients expect.Adapter lets classes work together that couldn’t otherwise because of incompatible interface.将一个类的...
分类:
其他好文 时间:
2016-08-13 19:47:29
阅读次数:
122
题意:给定 n 个数,让你修改最少的数,使得它变成一个不下降或者不上升序列。 析:这个就是一个LIS,但是当时并没有看出来。。。只要求出最长LIS的长度,用总数减去就是答案。 代码如下: ...
分类:
其他好文 时间:
2016-08-09 20:26:16
阅读次数:
169