摘要: n*n预处理。询问的时候用容斥,再删除边界。#include#include#include#includeusing namespace std;const int maxn=500+10;char s[maxn][maxn];int n,m;int q;int p[maxn][maxn];int... 阅读全文
posted @ 2016-01-02 09:43 Fighting_Heart 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 暴力搞#include#include#include#includeusing namespace std;long long a,b;long long tmpa,tmpb;long long num1[70],num2[70];int tot1,tot2;int main(){// fr... 阅读全文
posted @ 2016-01-02 09:42 Fighting_Heart 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;char num[1000];char s[1000];int week[10];int main(){ week[1]=1; week[2]=1; week[3]=1; ... 阅读全文
posted @ 2016-01-02 09:41 Fighting_Heart 阅读(138) 评论(0) 推荐(0) 编辑