最长公共子序列求解问题。 1 #include 2 #include 3 const int maxn=1000; 4 char s1[maxn],s2[maxn]; 5 int c[maxn][maxn]; 6 int main() 7 { 8 while(scanf("%s%s",s1,...
分类:
其他好文 时间:
2014-07-19 14:30:43
阅读次数:
223
git configgit config存在三个地方 :1./.git/config 项目级别2.~/.gitconfig 用户级别3./etc/gitconfig 系统级别git config -e 查看项目级别的配置git config -e --global 查看...
分类:
其他好文 时间:
2014-07-19 14:29:32
阅读次数:
168
There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and b...
分类:
其他好文 时间:
2014-07-19 14:25:51
阅读次数:
228
设三个坐标分别为p(x1,y1,z1)、q(x2,y2,z2)、r(x3,y3,z3),距离量度函数d需要满足一下几个条件:(1)d(p,q)≥0(当且仅当p=q时,有d(p,q)=0);距离大于零(2)d(p,q)=d(q,p);距离没有方向性;(3)d(p,r)≤d(p,q)+d(q,r);两点...
分类:
其他好文 时间:
2014-07-19 11:39:02
阅读次数:
189
There arenpeople standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" loudly, then the se...
分类:
其他好文 时间:
2014-07-19 11:33:34
阅读次数:
383
Using cron seems
to add another entry point into your application, while Quartz would
integrate into it. So you would be forced to deal with some inter-process communication if you wanted to pass...
分类:
其他好文 时间:
2014-07-19 11:11:44
阅读次数:
373
使用的的类是QtGui.QCompleterfrom PyQt4 import QtGui,QtCore
str = QtCore.QStringList(['a','air','airbus'])#预先设置字典
lineEdit = QtGui.QLineEdit()
lineEdit.setCompleter(QtGui.QCompleter(str)) #将字典添加到lineEdit中
这样...
分类:
其他好文 时间:
2014-07-19 08:17:12
阅读次数:
275
错误如下:
ld: Assertion failed: (_machoSection != 0), function machoSection, file /SourceCache/ld64/ld64-236.3/src/ld/ld.hpp, line 714.
解决办法:
在Build Settings 找到 MACH-O ,将Relocatable Object File 改为 St...
分类:
其他好文 时间:
2014-07-19 08:09:59
阅读次数:
254
边吃边敲,效率就是高
代码如下:
#include
#include
#define MAX 1000050
char s[MAX],ss[MAX*2];
int p[MAX*2];
int min(int a,int b){return a>b?b:a;}
int main()
{
int i,id,mx,max,n,j;
j=1;
while(scanf("%s",s...
分类:
其他好文 时间:
2014-07-19 02:31:25
阅读次数:
166