摘要:
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... 阅读全文
摘要:
暴力搞#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... 阅读全文
摘要:
#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; ... 阅读全文