准备安装:(wget -O - pi.dk/3 || curl pi.dk/3/) | bash查看手册:man parallel生成abc-file:parallel -k echo ::: A B C > abc-file生成def-file:parallel -k echo ::: D E F...
分类:
系统相关 时间:
2014-11-15 18:19:13
阅读次数:
291
两个字符串,判断他们之间的编辑距离,可以通过三个操作,删除,添加,替换。每种操作都算距离加一。例如“ab”和“abc”的距离为1.动态规划:用dis[i][j]记录string1的前i个和string2的前j个的距离。那么可以知道:1.如果str1的第i个,也就是str1[i-1]和str2的第j个...
分类:
其他好文 时间:
2014-11-15 01:25:10
阅读次数:
200
题目意思:
给定a和n,计算a+aa+aaa+aaaa+...+a...a(n个a) 的和。 输入描述:测试数据有多组,以文件结尾。每行输入a,n(1。输出描述:由于结果可能比较大,所以请输出答案mod 1000000007。
http://student.csdn.net/mcs/programming_challenges
题目分析:
同余定理:
s=0;
abc&MOD...
分类:
其他好文 时间:
2014-11-15 00:18:14
阅读次数:
217
1)10表示间隔10秒刷新一次2)如果是你要刷新某一个iframe就把window给换成frame的名字或ID号3)4>function abc(){window.location.href="/blog/window.location.href";setTimeout("abc()",10000)...
分类:
Web程序 时间:
2014-11-14 12:32:06
阅读次数:
185
Stringstr=newString("abc");构造方法说明:java.lang.String.String(String original)解释:Initializes a newly created String object so that it represents the same ...
分类:
编程语言 时间:
2014-11-14 11:59:28
阅读次数:
170
一个Java类:package com.abc.ufo.util;import java.awt.Color;import java.awt.Font;import java.awt.Graphics;import java.awt.image.BufferedImage;import java.i...
分类:
其他好文 时间:
2014-11-13 20:25:19
阅读次数:
222
后台:
List result = new ArrayList();
result.add("abc");
result.add("bcd");
request.setAttribute("result", result);
js实现:
...
分类:
编程语言 时间:
2014-11-13 09:26:06
阅读次数:
250
2565: 最长双回文串Time Limit: 10 SecMemory Limit: 128 MBSubmit: 617Solved: 330[Submit][Status]Description 顺序和逆序读起来完全一样的串叫做回文串。比如acbca是回文串,而abc不是(abc的顺序为“...
分类:
其他好文 时间:
2014-11-13 08:18:53
阅读次数:
214
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguo...
分类:
其他好文 时间:
2014-11-12 19:45:35
阅读次数:
201
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
他的意思就是回文构词法,即单词里的字母的种类和数目没有改变,只是改变了字母的排列顺序。
input= ["abc", "...
分类:
其他好文 时间:
2014-11-12 16:42:05
阅读次数:
200