摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=3787View Code #include"iostream"using namespace std;int main(){ char a[1001],b[1001]; int c[1001],d[1001]; int i; while(cin>>a>>b) { int L1=strlen(a); int L2=strlen(b); int start_a=1 , start_b=1; int s=0,t=0; for(i=0;i<L1;i++) if(a[i 阅读全文
posted @ 2011-05-08 21:22
聊聊IT那些事
阅读(306)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1753有时间优化一下,写的好长啊!View Code #include"iostream"using namespace std;int main(){ char a[1001],b[1001]; int c[1001] , d[1001]; int e[1001]; int i,j; while(cin>>a>>b) { int L1=strlen(a); int L2=strlen(b); int start_a=L1-1,start_b=L2-1; for(i 阅读全文
posted @ 2011-05-08 21:08
聊聊IT那些事
阅读(421)
评论(0)
推荐(0)

浙公网安备 33010602011771号