2013年3月22日
摘要: E -ACboy needs your help again!Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionACboy was kidnapped!!he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get A 阅读全文
posted @ 2013-03-22 21:18 straw_berry 阅读(433) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main (){ int n,i,j,c; int d[100]; string a,b; while(cin>>n>>a>>b) { i=j=c=0; stack st; int tag=1; while(j<n) { if(a[i]==b[j]) { i++; j++; ... 阅读全文
posted @ 2013-03-22 20:13 straw_berry 阅读(170) 评论(0) 推荐(0) 编辑