09 2018 档案

摘要:#include #include using namespace std; int m,k,ans; char s[1010][1010]; int vis[1010][1010]; bool check(int x,int y) { for(int i=0;i=0&&x=0&&vis[x][y]==0&&s[x][y]=='#'&&check(x,y)) { ... 阅读全文
posted @ 2018-09-11 20:42 wa小怪兽 阅读(107) 评论(0) 推荐(0)
摘要:#include using namespace std; long long quick(long long a,long long b,int c) { int ans=1; a=a%c; while(b!=0) { if(b&1) ans=(ans*a)%c; b>>=1; a=(a*a)%c; }... 阅读全文
posted @ 2018-09-11 18:55 wa小怪兽 阅读(90) 评论(0) 推荐(0)
摘要:#include #include #include #include using namespace std; int main() { int t,n,x; long long maxn,all; scanf("%d",&t); while(t--) { maxn=0;all=0; scanf("%d",&n... 阅读全文
posted @ 2018-09-09 21:50 wa小怪兽 阅读(79) 评论(0) 推荐(0)
摘要:#include #include #include using namespace std; int m,n; char s[110][110]; int vis[110][110]; void dfs(int x,int y,int v) { if(x=0&&y=0&&s[x][y]=='@'&&vis[x][y]==0) { vis[x][y]=... 阅读全文
posted @ 2018-09-09 21:32 wa小怪兽 阅读(133) 评论(0) 推荐(0)