摘要: 题目:http://codeforces.com/contest/265/problem/C这题本来会做的 结果比赛的时候少打了个0..最后判定的时候runtime error了...#include <iostream>#include <stdio.h>#include <cstring>#include <cmath>using namespace std;char arr[1000005];int ans[1000005];int lp,rp;int main(){ cin.getline(arr,1000005); int len=st 阅读全文
posted @ 2013-01-21 23:32 Daniel Qiu 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题目:http://codeforces.com/contest/265/problem/B#include <iostream>#include <stdio.h>#include <cstring>#include <cmath>using namespace std;int arr[100000];int main(){ int n; cin>>n; for(int i=0;i<n;i++) { cin >> arr[i]; } int ans=2*n-1+arr[0]; for(int i=0;i<n- 阅读全文
posted @ 2013-01-21 23:24 Daniel Qiu 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 题目:http://codeforces.com/contest/265/problem/A#include <iostream>#include <stdio.h>#include <cstring>using namespace std;char str[55];char ins[55];int main(){ cin.getline(str,55); cin.getline(ins,55); int slen=strlen(str); int ilen=strlen(ins); int i; for(i=0;i<slen;) { f... 阅读全文
posted @ 2013-01-21 23:22 Daniel Qiu 阅读(281) 评论(0) 推荐(0) 编辑