因为实验室项目好久没刷题了。从今天开始重新开始刷题。 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers...
分类:
其他好文 时间:
2014-07-16 23:04:15
阅读次数:
166
find [起始目录] 寻找条件 操作还有种表述方式:find PATH OPTION [-exec COMMAND { } \;]因为find命令会根据我们给的option,也就是寻找条件从我们给出的目录开始对其中文件及其下子目录中的文件进行递归搜索,所以我觉的这个地方说是“起始目录”是非常好的。...
分类:
系统相关 时间:
2014-07-16 23:03:03
阅读次数:
332
UVA 10548 - Find the Right Changes
题目链接
题意:给定a,b,c,表示货物的价值,求由A货物和B货物组成C货物有几种方法,判断有无解和是否有无限多种
思路:扩展欧几里得求通解,去计算上限和下限就能判断
代码:
#include
#include
#include
#include
using namespace std;
...
分类:
其他好文 时间:
2014-07-11 00:22:22
阅读次数:
419
题目链接:uva 10548 - Find the Right Changes
题目大意:给定A,B,C,求x,y,使得xA+yB=C,求有多少种解。
解题思路:拓展欧几里得,保证x,y均大于等于0,确定通解中t的取值。
#include
#include
#include
#include
using namespace std;
typedef long long ll...
分类:
其他好文 时间:
2014-07-11 00:03:25
阅读次数:
165
题目描述:
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return
true.
When s3 = "aad...
分类:
其他好文 时间:
2014-07-10 21:15:16
阅读次数:
166
Dungeon Master
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 16005
Accepted: 6208
Description
You are trapped in a 3D dungeon and need to find the quic...
分类:
其他好文 时间:
2014-07-10 20:44:15
阅读次数:
191
题目:hdu4847:Wow! Such Doge!
题目大意:在给出的段落里面找出“doge”大小写都可以。
解题思路:字符串匹配问题,可以在之前将字母都转换成统一格式。
代码:
#include
#include
const int N = 1e6;
char str[N];
const char *s1 = "doge";
int find () {
i...
分类:
其他好文 时间:
2014-07-10 19:32:46
阅读次数:
224
http://www.cnblogs.com/twinsclover/archive/2012/04/26/2471704.html用python的BeautifulSoup分析htmlhttp://www.crummy.com/software/BeautifulSoup/bs3/documentation.zh.htmlBeautifulSoup中文文档1)搜索tag:find(tagname)#直接搜索名为tagname的tag如:find(‘head‘)find..
分类:
编程语言 时间:
2014-07-10 19:12:38
阅读次数:
265
提示bind()错误=10048原因:其他程序占用飞鸽的2425端口比如:飞秋也是使用2425端口解决:用netstat命令查看是哪个进程占用了该端口格式:netstat-ano|find"2425"结果:UDP0.0.0.0:2425*:*1716最后的1716就是占用2425进程的进程ID,看看是什么,可以结束的直接结束该进程,再打..
分类:
其他好文 时间:
2014-07-10 18:08:23
阅读次数:
332
发生这种错误的原因是什么呢,正常情况下都是你的系统中装了两个版本的JDK,比如装了1个1.6版本的JDK,然后再安装1个1.7版本的JDK,这个时候你打开eclipse的时候就会弹出一个对话框,提示:Error:could not find java SE Runtime Environment。
这个时候你也可以在命令行中输入”java -version“,可以看到相关的错误提示:
...
分类:
编程语言 时间:
2014-07-10 17:40:32
阅读次数:
263