摘要: #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小怪兽 阅读(104) 评论(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小怪兽 阅读(84) 评论(0) 推荐(0) 编辑