2014年1月10日

POJ 3106 Flip and Turn 模拟 分析

摘要: --------const int maxn=400;const int maxm=200000;int n,m;char a[maxn][maxn];char b[maxn][maxn];int stk[10];int cnt;char s[maxm];char cd[7][3]={"1","CX","V","BY","2","AZ","H"};char sp[7][8]={"1","1H","1H1&q 阅读全文

posted @ 2014-01-10 00:27 电子幼体 阅读(134) 评论(0) 推荐(0) 编辑

UVA 10635 Prince and Princess DP LIS

摘要: --------int n;int a1[111111];int a2[111111];int c[111111];int a[111111];int g[111111];int d[111111];int N,p,q;int main(){ int T; scanf("%d",&T); for (int cas=1;cas<=T;cas++) { scanf("%d%d%d",&N,&p,&q); memset(c,0,sizeof(c)); memset(g,0,sizeof(g)); n=0; ... 阅读全文

posted @ 2014-01-10 00:26 电子幼体 阅读(106) 评论(0) 推荐(0) 编辑

导航