View Code #include<stdio.h>#include<string.h>#define max(a,b)(a>b?a:b)int dp[1<<10+5][11];int len[11][11];int n;char str[11][11];int main(){ int n,i,j,k,x,count; int len1,len2,max; while(scanf("%d",&n),n) { memset(len,0,sizeof(len)); for(i=0;i<n;i++) scanf(" Read More
posted @ 2011-08-26 20:34 Because Of You Views(702) Comments(1) Diggs(0) Edit
#include<stdio.h>#include<string.h>int a[10001];bool dp[10001][101];int n,m;int get_val(){ int ret(0); char c; while((c=getchar())==' '||c=='\n'||c=='\r'); ret=c-'0'; while((c=getchar())!=' '&&c!='\n'&&c!='\r') ret=r Read More
posted @ 2011-08-26 15:33 Because Of You Views(299) Comments(0) Diggs(0) Edit