摘要: 简单DP#include<iostream>#include<cstdio>#include<cstring>using namespace std;char map[2][1410];int S[4][2][1410],s[4][2][1410],smax,Smax;int max(int a,int b){ return a > b ? a : b;}int work(int n,int e){ int i; for(i=1;i<=n;i++) { if(map[e][i]=='S') { if(map[1-e][i... 阅读全文
posted @ 2012-05-24 13:49 书山有路,学海无涯 阅读(178) 评论(0) 推荐(0) 编辑