码迷,mamicode.com
首页 >  
搜索关键字:linux指令 查找文件 find whereis which locate    ( 33554个结果
并查集类的c++封装,比较union_find algorithm四种实现方法之间的性能差别
并查集类的c++封装,比较union_find algorithm四种实现方法之间的性能差别...
分类:编程语言   时间:2014-05-05 21:25:44    阅读次数:324
hdu 1598 find the most comfortable road
http://acm.hdu.edu.cn/showproblem.php?pid=1598 1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 const int inf=1<<30; 7...
分类:其他好文   时间:2014-05-05 10:53:38    阅读次数:344
hdu 1599 find the mincost route
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3 #include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:其他好文   时间:2014-05-05 10:52:15    阅读次数:315
uva ``Accordian'' Patience
题目如下: ``Accordian'' Patience You are to simulate the playing of games of ``Accordian'' patience, the rules for which are as follows:     Deal cards one by one in a row from left to right, no...
分类:其他好文   时间:2014-05-04 09:08:31    阅读次数:329
[leetcode] Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-03 23:21:20    阅读次数:292
PYTHON包安装时发生Unable to find vcvarsall.bat的解决办法
今天遇到了这个方面的问题,目前找到两种办法。一种是换编译器如mingw,另一种是装vc。第一种方法没成功,现在正在等第二种。 第一种: 首先安装MinGW; 把MinGW的路径添加到环境变量path中,比如MinGW安装在D:\MinGW\中,就把D:\MinGW\bin添加到path中; 打开命令...
分类:编程语言   时间:2014-05-03 23:20:29    阅读次数:363
POJ 2236 Wireless Network ||POJ 1703 Find them, Catch them 并查集
1.给你N台损坏的电脑坐标,这些电脑只能与不超过距离d的电脑通信,但如果x和y均能C通信,则x和y可以通信。现在给出若干个操作, O p 代表修复编号为p的电脑 S p q代表询问p和q是不是能通信。 2.xx城市有两个帮派,给你m条信息, D a b表示a和b不在一个帮派里。 A a b时要求输出a和b是不是在一个帮派里。(在/不在/不确定)...
分类:Web程序   时间:2014-05-03 21:49:54    阅读次数:351
Distinct Subsequences
题目: Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (c...
分类:其他好文   时间:2014-05-03 21:48:19    阅读次数:252
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:其他好文   时间:2014-05-03 21:35:49    阅读次数:310
【Union Find】JAVA implementation
import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; class UF { private int[] id; private int count; public UF(int N) { count = N; id = n...
分类:编程语言   时间:2014-05-03 21:21:44    阅读次数:336
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!