Administration of the labyrinth has decided to start a new season with new wallpapers. For this purpose they need a program to calculate the surface area of the walls inside the labyrinth. This job
...
分类:
其他好文 时间:
2014-07-23 22:32:07
阅读次数:
292
Problem Description
Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’s le...
分类:
其他好文 时间:
2014-07-23 16:36:41
阅读次数:
208
Nothing to hard to think. Just take care of boundary conditions.class Solution {public: string convert(string s, int nRows) { if(s.empty() |...
分类:
其他好文 时间:
2014-07-23 15:04:36
阅读次数:
227
Swift与Objective-C交互总结
在Swift中使用Objective-C(简单)
在创建OjbC文件时, XCode会提示创建XXX-Bridging-Header.h文件, 创建之
在创建的XXX-Bridging-Header.h上导入需要引入到Swift中的Objective-C类
#import "Need.h"
然后在Swfit中就能使用它了...
分类:
移动开发 时间:
2014-07-23 13:38:36
阅读次数:
310
题意:
要求在一个特殊的图上找最大匹配,该图特点是:无向图,每个节点度数为3,是一个边双连通分量(the graph is 2-edge-connected (that is, at least 2 edges need to be removed in order to make the graph disconnected) 这一点是这样理解的把。。)
思路:
一般想法就直接建图求最大匹...
分类:
其他好文 时间:
2014-07-23 13:22:07
阅读次数:
207
I Think I Need a Houseboat
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9530 Accepted Submission(s): 2733
Problem Description
...
分类:
其他好文 时间:
2014-07-23 13:13:06
阅读次数:
321
DescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each ...
分类:
其他好文 时间:
2014-07-23 11:31:26
阅读次数:
269
Problem Description
Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’s le...
分类:
其他好文 时间:
2014-07-22 23:57:27
阅读次数:
601
You want to use just the methods you like, without inheriting all the other methods that you’ll never need. This is possible with the borrowing method...
分类:
编程语言 时间:
2014-07-22 22:41:33
阅读次数:
291
Now I believe thoughts leading to DP is brutal DFS.. DFS is brutal force enumeration, but that's too much and naive. We need pruning. So, DFS + Prunin...
分类:
其他好文 时间:
2014-07-22 22:40:34
阅读次数:
183