QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120863#2773. Replicate Replicate Rfplicbtec20231020AC ✓21ms4396kbC++2310.1kb2023-07-07 11:57:162023-07-07 11:57:18

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-07 11:57:18]
  • 评测
  • 测评结果:AC
  • 用时:21ms
  • 内存:4396kb
  • [2023-07-07 11:57:16]
  • 提交

answer

/*
膜拜传奇特级宗师 Afterglow 大神儿
今天在 florr 首页称您为大夏尊贵的大名儿
一股敬佩之情油生然而
您在 florr 为国争光,扬我大夏威名
向您献上最真挚的膜拜!!!
膜拜传奇特级宗师 Afterglow 大神儿,今,一,您,扬。向!
膜拜传奇特级宗师 Afterglow 大神儿,今,一,您,扬。向!
膜拜传奇特级宗师 Afterglow 大神儿,今,一,您,扬。向!
*/
/*
          _____                    _____                     _____                    _____
         /\    \                  /\    \                   /\    \                  /\    \
        /  \    \                /  \    \                 /  \____\                /  \    \
        \   \    \              /    \    \               /   /    /                \   \    \
         \   \    \            /      \    \             /   /    /                  \   \    \
          \   \    \          /   /\   \    \           /   /____/                    \   \    \
           \   \    \        /   /  \   \    \         /    |    |                     \   \    \
            \   \    \      /   /    \   \    \       /     |    |                      \   \    \
             \   \    \    /   /    / \   \    \     /      |    |                       \   \    \
              \   \    \  /   /    /   \   \    \   /       |____|__ _____                \   \    \
_______________\   \____\/   /____/     \   \    \ /   /|            \    \ _______________\   \____\
\                  /    /\   \    \      \   \    \\  / |    _________\____\\                  /    /
 \    ____________/____/  \   \    \      \   \____\\/__|   |    |           \    ____________/____/
  \   \    \               \   \    \     |   |    |    |   |    |            \   \    \
   \   \    \               \   \    \    |   |    |    |   |    |             \   \    \
    \   \    \               \   \    \   |   |____|    |   |    |              \   \    \
     \   \    \               \   \    \  /   /    /    \   |    |               \   \    \
      \   \    \               \   \    \/   /    /      \  |    |                \   \    \
       \   \____\               \   \___/   /    /        \ |    |                 \   \____\
        \  /    /                \         /    /          \|    |                  \  /    /
         \/____/                  \_______/____/            \____|                   \/____/
*/
#define poj
#define zcz
#ifdef poj
//C++
#include<iomanip>
#include<iostream>
//C
#include<cassert>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<ctime>
//STL
#include<algorithm>
#include<bitset>
#include<functional>
#include<map>
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<vector>
//C++11
#if __cplusplus>=201103L
#include<chrono>
#include<random>
#include<unordered_set>
#include<unordered_map>
#endif
#else
#include<bits/stdc++.h>
#endif
using namespace std;
#ifdef zcz
class fastin{
	private:
#ifdef poj
	static const int MAXBF=1<<20;
#else
	const int MAXBF=1<<27;
#endif
	FILE *inf;
	char *inbuf,*inst,*ined;
	inline char _getchar(){
		if(inst==ined)inst=inbuf,ined=inbuf+fread(inbuf,1,MAXBF,inf);
		return inst==ined?EOF:*inst++;
	}
	public:
	fastin(FILE*_inf=stdin){
		inbuf=new char[MAXBF],inf=_inf,inst=inbuf,ined=inbuf;
	}
	~fastin(){delete inbuf;}
	template<typename Int> fastin&operator>>(Int &n){
		static char c;
		Int t=1;
		while((c=_getchar())<'0'||c>'9')if(c=='-')t=-1;
		n=(c^48);
		while((c=_getchar())>='0'&&c<='9')n=n*10+(c^48);
		n*=t;
		return *this;
	}
	fastin&operator>>(char&c){
		while((c=_getchar())<'!'||c>'~');
		return *this;
	}
	fastin&operator>>(char*s){
		int t=0;
		static char c;
		while((c=_getchar())==' '||c=='\n');
		s[t++]=c;
		while((c=_getchar())>='!'&&c<='~')s[t++]=c;
		s[t]='\0';
		return *this;
	}
}fi;
class fastout{
	private:
#ifdef poj
	static const int MAXBF=1<<20;
#else
	const int MAXBF=1<<27;
#endif
	FILE *ouf;
	char *oubuf,*oust,*oued;
	inline void _flush(){fwrite(oubuf,1,oued-oust,ouf);oued=oust;}
	inline void _putchar(char c){
		if(oued==oust+MAXBF)_flush(),oued=oubuf;
		*oued++=c;
		#ifdef local
		_flush();
		#endif
	}
	public:
	fastout(FILE*_ouf=stdout){
		oubuf=new char[MAXBF],ouf=_ouf,oust=oubuf,oued=oubuf;
	}
	~fastout(){_flush();delete oubuf;}
	template<typename Int> fastout&operator<<(Int n){
		if(n<0)_putchar('-'),n=-n;
		static char S[20];
		int t=0;
		do{S[t++]='0'+n%10,n/=10;}while(n);
		for(int i=0;i<t;++i)_putchar(S[t-i-1]);
		return *this;
	}
	fastout&operator<<(char c){_putchar(c);return *this;}
	fastout&operator<<(char*s){
		for(int i=0;s[i];++i)_putchar(s[i]);
		return *this;
	}
	fastout&operator<<(const char*s){
		for(int i=0;s[i];++i)_putchar(s[i]);
		return *this;
	}
}fo;
#define cin fi
#define cout fo
#else
#define czc ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#endif
#define mod7 1000000007
#define mod9 998244353
#define ll long long
#define isinf 0x3f3f3f3f
#define ilinf 0x7fffffff
#define lsinf 0x3f3f3f3f3f3f3f3f
#define llinf 0x7fffffffffffffff
#define pii pair<int,int>
#define fr first
#define sc second
#define next ___
#define pb push_back
#define N 310
#define M 5000010
#define For(i,a,b) for(ll i=(a);i<=(b);++i)
#define Rep(i,a,b,c) for(ll i=(a);i<=(b);i+=c)
#define Per(i,a,b,c) for(ll i=(a);i>=(b);i-=c)
#define Gra(i) for(ll i=h[x];i;i=next[i])
typedef int arr[N];
typedef int arm[M];
typedef ll arl[N];
typedef ll alm[M];
typedef double ard[N];
typedef double adm[M];
namespace modint{
	template<typename Int,Int mod,Int m1>
	struct modint{
		Int v;
		modint(){v=0;}
		modint(Int a){v=a;}
		bool operator==(modint a){return v==a.v;}
		bool operator!=(modint a){return v!=a.v;}
		bool operator<(modint a){return v<a.v;}
		bool operator>(modint a){return v>a.v;}
		bool operator<=(modint a){return v<=a.v;}
		bool operator>=(modint a){return v>=a.v;}
		bool operator==(Int a){return v==a;}
		bool operator!=(Int a){return v!=a;}
		bool operator<(Int a){return v<a;}
		bool operator>(Int a){return v>a;}
		bool operator<=(Int a){return v<=a;}
		bool operator>=(Int a){return v>=a;}
		modint operator+(modint a){return v>=mod-a.v?v-mod+a.v:v+a.v;}
		modint operator-(modint a){return v>=a.v?v-a.v:v+mod-a.v;}
		modint modnum(modint a){
			return a-((__int128(a.v)*m1)>>80)*mod;
		}
		modint operator*(modint a){return modnum(v*a.v);}
		modint operator+=(modint a){*this=*this+a;return *this;}
		modint operator-=(modint a){*this=*this-a;return *this;}
		modint operator*=(modint a){*this=*this*a;return *this;}
		modint qpow(modint a,Int b){
			modint r(1);
			for(;b;b>>=1,a*=a)if(b&1)r*=a;
			return r;
		}
		modint operator/(modint a){return qpow(a,mod-2)*v;}
		modint operator/=(modint a){*this=*this/a;return *this;}
		modint&operator++(){*this=*this+1;return *this;}
		modint&operator--(){*this=*this-1;return *this;}
		const modint operator++(int){modint r=*this;++*this;return r;}
		const modint operator--(int){modint r=*this;--*this;return r;}
		#ifdef cout
		friend fastin&operator>>(fastin&in,modint&n){in>>n.v;return in;}
		friend fastout&operator<<(fastout&out,modint n){out<<n.v;return out;}
		#else
		friend istream&operator>>(istream&in,modint&n){in>>n.v;return in;}
		friend ostream&operator<<(ostream&out,modint n){out<<n.v;return out;}
		#endif
	};
	typedef modint<long long,1000000007,1208925811152148> int7;
	typedef modint<long long,998244353,1211051999424262> int9;
}
using namespace modint;
int n,m,a[N][N],b[N][N];
char s[N][N];
void solve(){
	cin>>m>>n;
	For(i,1,n){
		cin>>(s[i]+1);
		For(j,1,m){
			a[i][j]=s[i][j]=='#';
		}
	}
	while(n>=3&&m>=3){
		For(i,1,n)For(j,1,m){
			b[i][j]=0;
			For(x,0,2)if(i-x>0){
				For(y,0,2)if(j-y>0){
					b[i][j]^=b[i-x][j-y];
				}
			}
			b[i][j]^=a[i][j];
		}
//		For(i,1,n){
//			For(j,1,m){
//				cout<<b[i][j];
//			}
//			cout<<'\n';
//		}
		int bg=0;
		For(i,0,2)For(j,0,2){
//			cout<<i<<' '<<j<<'\n';
			int t=1,x=0,y=0,tt=1;
			for(int k=n-i+2;t;k-=3){
//				cout<<k<<' '<<tt<<'\n';
				if(k<1&&tt)tt=0,x=k+3;
				if(tt){
					For(p,max(k,1),min(k+2,n)){
						For(q,0,1){
							if(b[p][m+q-1]!=(p!=k+2&&(j+q)%3!=2)){
								tt=0;
								x=k+3;
							}
						}
					}
				}
				if(!tt){
					For(p,max(k,1),min(k+2,n)){
						For(q,0,1){
							if(b[p][m+q-1]){
								t=0;
							}
						}
					}
				}
				if(k<1)break;
			}
			if(!t)continue;
			tt=1;
			for(int k=m-j+2;t;k-=3){
//				cout<<k<<' '<<tt<<'\n';
				if(k<1&&tt)tt=0,y=k+3;
				if(tt){
					For(q,0,1){
						For(p,max(k,1),min(k+2,m)){
							if(b[n+q-1][p]!=(p!=k+2&&(i+q)%3!=2)){
								tt=0;
								y=k+3;
							}
						}
					}
				}
				if(!tt){
					For(q,0,1){
						For(p,max(k,1),min(k+2,m)){
							if(b[n+q-1][p]){
								t=0;
							}
						}
					}
				}
				if(k<1)break;
			}
			if(!t)continue;
//			cout<<x<<' '<<y<<'\n';
			For(k,x,n){
				For(l,y,m){
					if((k-x)%3!=2&&(l-y)%3!=2){
						b[k][l]^=1;
					}
				}
			}
			bg=1;
			break;
		}
		if(!bg)break;
		n-=2;
		m-=2;
		For(i,1,n){
			For(j,1,m){
				a[i][j]=b[i][j];
			}
		}
	}
	int l1=1,r1=n,l2=1,r2=m;
//	For(i,l1,r1){
//		For(j,l2,r2){
//			cout<<(a[i][j]==1?'#':'.');
//		}
//		cout<<'\n';
//	}
	while(l1<r1){
		int f=1;
		For(i,l2,r2)if(a[l1][i]){
			f=0;
			break;
		}
//		cout<<"l1:"<<l1<<' '<<f<<'\n';
		if(!f)break;
		++l1;
	}
	while(l1<r1){
		int f=1;
		For(i,l2,r2)if(a[r1][i]){
			f=0;
			break;
		}
//		cout<<"r1:"<<r1<<' '<<f<<'\n';
		if(!f)break;
		--r1;
	}
	while(l2<r2){
		int f=1;
		For(i,l1,r1)if(a[i][l2]){
			f=0;
			break;
		}
//		cout<<"l2:"<<l2<<' '<<f<<'\n';
		if(!f)break;
		++l2;
	}
	while(l2<r2){
		int f=1;
		For(i,l1,r1)if(a[i][r2]){
			f=0;
			break;
		}
//		cout<<"r2:"<<r2<<' '<<f<<'\n';
		if(!f)break;
		--r2;
	}
	if(l1==r1&&l2==r2){
		cout<<'#';
		return;
	}
	For(i,l1,r1){
		For(j,l2,r2){
			cout<<(a[i][j]==1?'#':'.');
		}
		cout<<'\n';
	}
	return;
}
int main(){
	#ifndef zcz
	czc;
	#endif
	int t=1;
	while(t--)solve();
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3440kb

input:

10 10
.#...#...#
##..##..##
##.#.##...
##.#.##...
.#...#####
...##..#.#
......###.
##.#.##...
#..#..#..#
##..##..##

output:

.#
##

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3584kb

input:

8 8
##..#.##
#.####.#
.#.#.#..
.##.#.##
.#.#.#..
.##.#.##
#..#.###
##.#.##.

output:

####
#..#
#.##
###.

result:

ok 4 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3424kb

input:

5 4
#....
..###
..###
..###

output:

#

result:

ok single line: '#'

Test #4:

score: 0
Accepted
time: 1ms
memory: 3336kb

input:

1 1
#

output:

#

result:

ok single line: '#'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3412kb

input:

3 3
###
###
###

output:

#

result:

ok single line: '#'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3408kb

input:

3 3
.##
###
###

output:

#

result:

ok single line: '#'

Test #7:

score: 0
Accepted
time: 1ms
memory: 3572kb

input:

3 3
##.
###
###

output:

#

result:

ok single line: '#'

Test #8:

score: 0
Accepted
time: 1ms
memory: 3416kb

input:

3 3
###
###
.##

output:

#

result:

ok single line: '#'

Test #9:

score: 0
Accepted
time: 1ms
memory: 3412kb

input:

3 3
###
###
##.

output:

#

result:

ok single line: '#'

Test #10:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

3 3
.##
###
##.

output:

.##
###
##.

result:

ok 3 lines

Test #11:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

12 12
############
#..##..##..#
#..##..##..#
############
############
#..##..##..#
#..##..##..#
############
############
#..##..##..#
#..##..##..#
############

output:

####
#..#
#..#
####

result:

ok 4 lines

Test #12:

score: 0
Accepted
time: 2ms
memory: 3628kb

input:

88 79
...##......##...#.....#............##......##...#.....#............##......##...#.....#.
..#..#....#..#..##...##...........#..#....#..#..##...##...........#..#....#..#..##...##.
.#....#..#......#.#.#.#..........#....#..#......#.#.#.#..........#....#..#......#.#.#.#.
.######..#......#..#..#.......

output:

...##......##...#.....#.
..#..#....#..#..##...##.
.#....#..#......#.#.#.#.
.######..#......#..#..#.
.#....#..#......#.....#.
.#....#...#..#..#.....#.
.#....#....##...#.....#.
........................
###....##...####.....##.
.#....#..#..#...#...#..#
.#...#......#...#..#....
.#...#......####...#....
...

result:

ok 15 lines

Test #13:

score: 0
Accepted
time: 2ms
memory: 3712kb

input:

88 79
...##......##...#.....#............##......##...#.....#............##......##...#.....#.
..#..#....#..#..##...##...........#..#....#..#..##...##...........#..#....#..#..##...##.
.#....#.#.#......#..#.#.........#.#...#..#.......#..#.#.###......#....#..#......#.#.#.#.
.######.#.#......###..#.......

output:

...##......##...#.....#.
..#..#....#..#..##...##.
.#....#..#......#.#.#.#.
.######..#......#..#..#.
.#....#..#......#.....#.
.#....#...#..#..#.....#.
.#....#....##...#.....#.
........................
###....##...####.....##.
.#....#..#..#...#...#..#
.#...#......#...#..#....
.#...#......####...#....
...

result:

ok 15 lines

Test #14:

score: 0
Accepted
time: 4ms
memory: 3824kb

input:

171 168
..#.....#.........#.....#.........#.....#.........................#.....#.........#.....#.........#.....#.........................#.....#.........#.....#.........#.....#..
...#...#...........#...#...........#...#...........................#...#...........#...#...........#...#...................

output:

..#.....#..
...#...#...
..#######..
.##.###.##.
###########
#.#######.#
#.#.....#.#
...##.##...

result:

ok 8 lines

Test #15:

score: 0
Accepted
time: 4ms
memory: 3864kb

input:

171 168
..####.#.#.....####....#.#.###....#.....#.........................####.#.#.....####....#.#.###....#.....#.........................####.#.#.....####....#.#.###....#.....#..
....##..##.....###.#....##.###.....#...#............................##..##.....###.#....##.###.....#...#...................

output:

..#.....#..
...#...#...
..#######..
.##.###.##.
###########
#.#######.#
#.#.....#.#
...##.##...

result:

ok 8 lines

Test #16:

score: 0
Accepted
time: 4ms
memory: 3888kb

input:

172 165
.##......................................#.......................##......................................#.......................##......................................#..
#####.................................######....................#####.................................######..............

output:

.##......................................#..
#####.................................######
#######..............................###.###
###..####...........................##....##
#####..###........................###.....##
#####...###......................###......##
.####....####....................

result:

ok 37 lines

Test #17:

score: 0
Accepted
time: 2ms
memory: 3888kb

input:

172 165
.##......................................#.......................##......................................#.......................##......................................#..
#####.................................######....................#####.................................######..............

output:

.##......................................#..
#####.................................######
#######..............................###.###
###..####...........................##....##
#####..###........................###.....##
#####...###......................###......##
.####....####....................

result:

ok 37 lines

Test #18:

score: 0
Accepted
time: 5ms
memory: 3880kb

input:

187 181
.............................#...............................................................#...............................................................#.............................
............................###.............................................................###............

output:

.............................#.............................
............................###............................
............................###............................
...........................#####...........................
...........................#####...........................
...

result:

ok 53 lines

Test #19:

score: 0
Accepted
time: 5ms
memory: 4028kb

input:

187 181
.............................#...............................................................#...............................................................#.............................
............................###.............................................................###............

output:

.............................#.............................
............................###............................
............................###............................
...........................#####...........................
...........................#####...........................
...

result:

ok 53 lines

Test #20:

score: 0
Accepted
time: 2ms
memory: 4204kb

input:

300 300
#.#..#.##.##.##.#..##.#.#...#.##.#.#.#.#.#####..###...######.#...#.#..####.#.##.##.#.#...#.##..#....##.#####.##..#......#....###..##....#######......##.#..#..####..#.#...###.#....###...#..#.#..##..#..##.#..#..#.#....#.#...##..##.#..###..#.#...#...##....#.#.#.##.#.....##...##....##..#..#.###....

output:

#.#..#.##.##.##.#..##.#.#...#.##.#.#.#.#.#####..###...######.#...#.#..####.#.##.##.#.#...#.##..#....##.#####.##..#......#....###..##....#######......##.#..#..####..#.#...###.#....###...#..#.#..##..#..##.#..#..#.#....#.#...##..##.#..###..#.#...#...##....#.#.#.##.#.....##...##....##..#..#.###...##..#....

result:

ok 300 lines

Test #21:

score: 0
Accepted
time: 1ms
memory: 4220kb

input:

300 300
.##.....#.#..###.#.######..#.##.##.##.####.#...#..#.#.#..#.##..#.#....########.#..#.#.#...##..#..##.#.##.....##..###..####..#..####...#.####.#...#####..##...#..#..#...#.###...##..#.#.#.##....###...#####..........#.#.##.###..##.#..#.###.#########.##.#.#.#.####..#.##.##.###.#.#######..#.###.##...

output:

.#.##.###....#...########.#.#...#.#...#..###.###.#.#.#.###..##...##.##########....###.....#.###.#...####.##.#....#....#..##....#..##.#.#..#.#.##..#..##..##.#.###.#.##...#.....#.###...####.##..#.##..#..##.##.##.###...#.#..##..###.#.#..###########..###...######.#.#...#.#..###..#..#....#####..###.##.
....

result:

ok 298 lines

Test #22:

score: 0
Accepted
time: 19ms
memory: 4352kb

input:

299 299
###.###.###.....###.###.###..#..#.#.#.#.###..#...#...#.......................#...#...#.......#...#...#.......................#..#.#.#.#.###..#..#.#.#.#.###..#..#.#.#.#.###..................#...#...#.......#...#...#.......................#...#...#.......#..#.#.#.#.###.....###.###.###.....###....

output:

#

result:

ok single line: '#'

Test #23:

score: 0
Accepted
time: 19ms
memory: 4340kb

input:

300 300
#.#.#.#.###..#..###.#.#.#.#.....###.###.###.....................................................................................#.#.#.#.###..#..###.#.#.#.#.....###.###.###.....................................................................................#.#.#.#.###..#..###.#.#.#.#.....###....

output:

#.
.#

result:

ok 2 lines

Test #24:

score: 0
Accepted
time: 18ms
memory: 4220kb

input:

300 300
..............................................................#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...#...#................................

output:

..............................................................#.....................................
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #25:

score: 0
Accepted
time: 19ms
memory: 4316kb

input:

300 300
...................................#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...#...#...........................................................

output:

...................................#................................................................
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #26:

score: 0
Accepted
time: 10ms
memory: 4076kb

input:

264 212
...............................................................#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...#...#
..............................

output:

...............................................................#
................................................................
................................................................
................................................................
#..........................................

result:

ok 12 lines

Test #27:

score: 0
Accepted
time: 16ms
memory: 4220kb

input:

296 300
.........................###.###.....###.###.....###.###.###.....###.###.....###.###.....###.###.....###.###.....###.###.###.....###.###.....###.###.....###.###.....###.###.....###.###.###.....###.###.....###.###...................................................................................

output:

.........................................#......................................................
................................................................................................
................................................................................................
............

result:

ok 84 lines

Test #28:

score: 0
Accepted
time: 19ms
memory: 4220kb

input:

300 300
####....########################....####........................................................############........................####....####################....####........................############........................................................####....########################...

output:

####################################################################################################
####################################################################################################
##################################################################################################...

result:

ok 100 lines

Test #29:

score: 0
Accepted
time: 19ms
memory: 4112kb

input:

300 300
####....########################....####........................................................############........................####....####################....####........................############........................................................####....########################...

output:

####################################################################################################
####################################################################################################
##################################################################################################...

result:

ok 100 lines

Test #30:

score: 0
Accepted
time: 15ms
memory: 4228kb

input:

300 300
###....................................................................................................................................................................................................................................................................................................

output:

#

result:

ok single line: '#'

Test #31:

score: 0
Accepted
time: 15ms
memory: 4396kb

input:

300 300
...................................................................................................#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...

output:

...................................................................................................#
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #32:

score: 0
Accepted
time: 15ms
memory: 4396kb

input:

300 300
...................................................................................................#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...

output:

...................................................................................................#
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #33:

score: 0
Accepted
time: 19ms
memory: 4184kb

input:

300 300
............................................................................##.#.##.........##.#.###...#...###.#.##................#...#...#.......................................................#..##...#..........#...............................#............#...#...#..........#............#...

output:

...................................................................................................#
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #34:

score: 0
Accepted
time: 16ms
memory: 4216kb

input:

300 300
#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...#...#..............................................................................................

output:

#...................................................................................................
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #35:

score: 0
Accepted
time: 15ms
memory: 4336kb

input:

300 300
#...#...#.......................#...#...#.......................................................#...#...#.......................................................#...#...#.......................#...#...#..............................................................................................

output:

#...................................................................................................
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #36:

score: 0
Accepted
time: 16ms
memory: 4312kb

input:

300 300
#...#...#.......................#...#...#.........##.#.##.##.#.##.##.#.##.......................#...#...#.....................................................##..##..##........................#...#...#.....................###.###.###.....................................................###.##...

output:

#...................................................................................................
....................................................................................................
.....................................................................................................

result:

ok 100 lines

Test #37:

score: 0
Accepted
time: 19ms
memory: 4204kb

input:

299 299
.##.#.##.........##.#.##.........##.#.##.........................................................................................##.#.##.........##.#.##.........##.#.##.........................................................................................##.#.##.........##.#.##.........##....

output:

#

result:

ok single line: '#'

Test #38:

score: 0
Accepted
time: 20ms
memory: 4352kb

input:

299 299
###.#.....#.##......###.#.#.....###.#.#.#.#..........#...#...#.......#...#...#.......................#...#...#.......#...#...#..###.#.....#.##......#.#.###..#..###.###.###..#.......#...#...#.......................#...#...#.......#...#...#..................###.##...##.#.......#.#.###..#..###....

output:

#

result:

ok single line: '#'

Test #39:

score: 0
Accepted
time: 19ms
memory: 4224kb

input:

299 299
###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###....

output:

#

result:

ok single line: '#'

Test #40:

score: 0
Accepted
time: 19ms
memory: 4196kb

input:

299 299
###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###....

output:

#

result:

ok single line: '#'

Test #41:

score: 0
Accepted
time: 19ms
memory: 4316kb

input:

299 299
####.#..#...#....#.#.##.#.###..##....###.##......#...#......##..#.#.##....##.####.#..###.##.##.##.###.#.##.####.##.....#..#...#...#...####.#....#.#..##.#.....#.#.#..#.##.##..##.#######...###..#.######...#..##.#.....#.#..#.#...#..##.#.##......#.####.......##...#...#.##..#.#..##..#......#.#.#....

output:

#

result:

ok single line: '#'

Test #42:

score: 0
Accepted
time: 21ms
memory: 4180kb

input:

299 299
##...#..#.#.#..#.....#.##..##.#..#...#.#.#.########.........##..#.#.####.#####.###.##......##.##..#.##.#..#....###....#.#..##.....#..###...###.######..#.####..#.###..#########.##..##.##..##...#.#.#.....####.#...#...###.##...###..#####.....#.##...###.##.##..#..##.##.##..#.####..#.#..##.#####....

output:

#

result:

ok single line: '#'

Test #43:

score: 0
Accepted
time: 20ms
memory: 4392kb

input:

299 299
###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###.###.###.....................................................................................###.###.###.....###.###.###.....###....

output:

#

result:

ok single line: '#'

Test #44:

score: 0
Accepted
time: 17ms
memory: 4184kb

input:

299 299
#####.#.###.#..##.###.#.#.#..#..#.#..#..##..#.#.#.#..#.#.#.#..#.###.##.####.##.##.#.##....#.###..#######..##..#.##....#.#...#....#######.#.##..#.#####.###.#.#...###.#..#.#......#..##..###......#####..#.......###..#..###.....##...#...##.....#.#.....#...........#...##.###..#.###.#.###.....###....

output:

#

result:

ok single line: '#'

Test #45:

score: 0
Accepted
time: 1ms
memory: 3884kb

input:

1 300
#
.
.
.
.
.
.
.
#
.
.
.
.
#
#
#
.
.
.
#
#
#
#
#
.
#
.
#
.
.
#
.
#
.
#
#
#
#
.
#
.
#
.
.
.
.
.
.
.
.
.
#
.
.
.
#
#
.
.
.
.
.
#
.
#
#
.
#
#
#
#
#
#
#
.
.
.
#
#
#
.
#
.
.
#
#
#
#
.
#
#
.
.
#
.
.
#
#
#
.
#
.
#
#
.
.
.
.
#
.
#
.
.
.
.
#
.
.
#
#
.
#
#
.
.
.
#
.
.
#
#
.
#
.
#
.
.
.
#
.
#
.
.
#
#
.
.
...

output:

#
.
.
.
.
.
.
.
#
.
.
.
.
#
#
#
.
.
.
#
#
#
#
#
.
#
.
#
.
.
#
.
#
.
#
#
#
#
.
#
.
#
.
.
.
.
.
.
.
.
.
#
.
.
.
#
#
.
.
.
.
.
#
.
#
#
.
#
#
#
#
#
#
#
.
.
.
#
#
#
.
#
.
.
#
#
#
#
.
#
#
.
.
#
.
.
#
#
#
.
#
.
#
#
.
.
.
.
#
.
#
.
.
.
.
#
.
.
#
#
.
#
#
.
.
.
#
.
.
#
#
.
#
.
#
.
.
.
#
.
#
.
.
#
#
.
.
.
.
.
...

result:

ok 300 lines

Test #46:

score: 0
Accepted
time: 1ms
memory: 3856kb

input:

2 300
#.
.#
..
#.
.#
#.
.#
#.
##
..
.#
##
#.
#.
#.
.#
.#
#.
#.
##
##
##
##
#.
#.
..
.#
..
.#
.#
.#
..
#.
.#
..
..
..
.#
#.
##
.#
##
#.
#.
..
..
.#
##
##
##
.#
##
..
#.
##
.#
#.
.#
..
..
.#
#.
##
#.
#.
.#
.#
##
#.
..
##
..
.#
#.
..
..
##
..
.#
#.
..
..
#.
..
#.
#.
#.
.#
..
##
##
..
#.
.#
#.
..
.#
.#
...

output:

#.
.#
..
#.
.#
#.
.#
#.
##
..
.#
##
#.
#.
#.
.#
.#
#.
#.
##
##
##
##
#.
#.
..
.#
..
.#
.#
.#
..
#.
.#
..
..
..
.#
#.
##
.#
##
#.
#.
..
..
.#
##
##
##
.#
##
..
#.
##
.#
#.
.#
..
..
.#
#.
##
#.
#.
.#
.#
##
#.
..
##
..
.#
#.
..
..
##
..
.#
#.
..
..
#.
..
#.
#.
#.
.#
..
##
##
..
#.
.#
#.
..
.#
.#
##
##
...

result:

ok 300 lines

Test #47:

score: 0
Accepted
time: 7ms
memory: 4220kb

input:

151 300
##.#.##.##.#.##.##.#.##.........................................##.#.##.##.#.##.##.#.##.........................................##.#.##.##.#.##.##.#.##
##.#.##.##.#.##.##.#.##.........................................##.#.##.##.#.##.##.#.##.........................................##.#.##.##.#...

output:

#
.
#
.
#
#
#
#
.
.
#
.
.
#
.
.
#
.
#
.
.
#
#
#
#
.
.
#
#
.
.
.
.
#
.
#
.
.
.
#
#
#
.
#
#
#
.
.
.
#
#
.
.
#
.
.
.
#
#
#
.
#
#
#
#
.
#
#
.
.
.
#
.
.
#
#
#
#
#
.
.
.
#
.
#
.
#
.
#
.
#
#
.
#
#
#
.
.
#
.
.
#
.
#
#
.
.
.
#
#
.
.
#
.
.
#
#
#
.
.
#
#
#
.
.
#
#
.
.
#
.
.
.
#
#
.
.
#
#
.
#
#
#
#
.
#
#
#
.
#

result:

ok 150 lines

Test #48:

score: 0
Accepted
time: 1ms
memory: 3408kb

input:

300 1
#..#.....###...#.#.#...#############.#.#...#.#...#....#.#....#.......#.#...####.#.####.#....#.#.#........#....#.##....##.#..#....##..##...#..######..###########...#.####.#.#.###.##..##......#..#......###.###.####..#.#..#.####.#.....#.#.#..#...#.#.######....##.########.##.....####.####..#.#.##....

output:

#..#.....###...#.#.#...#############.#.#...#.#...#....#.#....#.......#.#...####.#.####.#....#.#.#........#....#.##....##.#..#....##..##...#..######..###########...#.####.#.#.###.##..##......#..#......###.###.####..#.#..#.####.#.....#.#.#..#...#.#.######....##.########.##.....####.####..#.#.##.#.#..#

result:

ok single line: '#..#.....###...#.#.#...#######...##.....####.####..#.#.##.#.#..#'

Test #49:

score: 0
Accepted
time: 1ms
memory: 3384kb

input:

300 2
#..##..#.#.#..##.####.#...#.##.####...#.####.##..##...#.#.....#.##.....##...#.#.#.#.#...#...###.#...###......######.##.##...###..#..#..#..#.#.###.#.##.#...#.#.##.#####..#..#....#.#.##....##.##....#.###.####....#####.#......#..##..#.#..#.##.##..#####.#.....#..##...###...#.#..#..##..##.........#...

output:

#..##..#.#.#..##.####.#...#.##.####...#.####.##..##...#.#.....#.##.....##...#.#.#.#.#...#...###.#...###......######.##.##...###..#..#..#..#.#.###.#.##.#...#.#.##.#####..#..#....#.#.##....##.##....#.###.####....#####.#......#..##..#.#..#.##.##..#####.#.....#..##...###...#.#..#..##..##.........#.....#...

result:

ok 2 lines

Test #50:

score: 0
Accepted
time: 7ms
memory: 3820kb

input:

300 151
###...#.##.#####..##.###.##.####.....#...#.##.#.#.#.#.##.#..#..#...####..#..#.###...#.#.####....##...#.#.#.#.#....#..###...###..#...##....##.#.##.##.###..#.#....#.##...#.#..#....#..###...###...##.###.###.#.#.#........#...###.#.###..#######.#...##...#.#.#.##..#..#..######...####.###.##...#..#...

output:

#.#....#...###..#.##...#.##.###..##.......#.####.#..#.#.....#..##..#####.#######.#.####..#..###..#.##.#...##.##........####.##.##.#.##.###...###..##.#

result:

ok single line: '#.#....#...###..#.##...#.##.##...####.##.##.#.##.###...###..##.#'

Test #51:

score: 0
Accepted
time: 1ms
memory: 3444kb

input:

35 23
#..#.#.#.#.#.##..###.##.###...##..#
#..#.#.#.#.#..##..##..###.#..##..##
###.....###......#..#..............
.###.#.##.##..####.#..###.#.#....##
..###.##.#.#.##..#..#.......###....
.#..###.###..#.#..##..###.#.#....##
#..#.#.#.....#####..#.#.###...##..#
##.##.###.#.#.####.###.............
.#..##...

output:

####.#.######

result:

ok single line: '####.#.######'

Test #52:

score: 0
Accepted
time: 1ms
memory: 3548kb

input:

40 19
.............###.....###.....###........
.............###.....###.....###........
.............###.....###.....###.##.#.##
.................................##.#.##
........................................
#.#.#.........#.#...#...#.#......##.#.##
........................................
#.#.#.....

output:

#

result:

ok single line: '#'

Test #53:

score: 0
Accepted
time: 1ms
memory: 3620kb

input:

44 31
..#..........#.......##..#...##..##...#..##.
...#...##.#.....#..##..##.#.#......##..#..#.
....#....#.....#.#.###...#.#.#.....###.#....
......#...#.#.#.##...#..#....##.#.#.###..#..
....#.###.#.#.##.###.###..#..###.....#...##.
....#..##.##....#......##.....###.###..#..##
...#..####..#..#.#..####...

output:

#...#...#..#...##.
.#....#.#.#.##..#.
..#...##..##.#....
....#.....#.#..#..
.#...#.....##.....
#....##.##...#...#
#...#....#..##....

result:

ok 7 lines

Test #54:

score: 0
Accepted
time: 0ms
memory: 3344kb

input:

12 18
.##.##.##.##
.#....#.####
#.#.##.#.#..
#...##.###..
...###...###
.....######.
...#.##.####
.###..##.##.
.....##.#.##
#.####....#.
.##..#..#.##
###.##....##
#..#..#..#..
#.#..#.#.##.
.#....#.####
#.###..#...#
#...##.###..
.##...##..#.

output:

.###.###
.#.#..##
####..##
########
#..#####
#.#.#.#.
.#######
..###.##
###..###
...##.##
########
###.####
#.#.##..
.####.#.

result:

ok 14 lines

Test #55:

score: 0
Accepted
time: 0ms
memory: 3628kb

input:

42 21
#.....###...#.##...##.#.##.##..###.#...#.#
.#.......#...#.#..#.#...#..####..#.......#
###....##.#....####.##..#.###.##..#.......
#.#..#..#.....###...####..#.#.##....##....
.#..##......#..#..#.##...#.#..###...#...#.
....#.#...#...#.###.##.###.##.##..........
.....#.#.#.......###.###.###...........

output:

#.....##....#...#..#...#.#
.#...........#.#.........#
###....#.#........#.......
#.#..#....#..###....##....
.#..#..#............#...#.

result:

ok 5 lines

Test #56:

score: 0
Accepted
time: 1ms
memory: 3384kb

input:

17 34
##.##.###.##.##..
##.##.###.##.##..
..#.#...#...#.#..
.................
..#.#...#...#.#..
##.##.###.##.##..
##.##.###.##.##..
.................
..#.#...#...#.#..
##.#.#.#.#.##....
##.#.#.#.#.##....
....###.###.###..
####..##..####...
....###.###.###..
..#..##..##..#...
....###.###.###..
##.##....

output:

#
.
.
#
.
#
.
.
.
#
.
#
.
.
#

result:

ok 15 lines

Test #57:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

32 40
......#.##.####.##.##..##.#.#.##
.###..#.##.###.#.......#.##.###.
.###....##...#.###....#.##....#.
...#######.####..##.#...#.#.##..
#.###.#....#..###.#.#.#...###.##
#...#.##.###...#.###.##.#...##.#
..##...###.#...###.#.##.#..#.###
#.#..#.....###.##.##....#.#...##
#.#.#.#....###.##.######.#.#.....

output:

......##.....#...#
.#.#.#...#.#.##.##
........#..#.#.#.#
...#.#...#........
#...#.#.#.#.#.#.##
..##..#.#..#...##.
..........#.#..###
...#.###....#.####
..#.##......#...##
##.#..........###.
.#..#..#....#..#.#
...##.....#.#.#.#.
.##.#.#........#..
...#.#.##.#..#..#.
....##.##.#...#..#
..#....#..#.......

result:

ok 26 lines

Test #58:

score: 0
Accepted
time: 1ms
memory: 3440kb

input:

25 17
#.......#.......#........
................#...#...#
.........................
.........................
.........................
................#...#...#
.........................
.........................
#.......#.......#........
................#...#...#
.........................
...........

output:

#

result:

ok single line: '#'

Test #59:

score: 0
Accepted
time: 0ms
memory: 3472kb

input:

15 24
##.##.###.##.##
##.##.###.##.##
...............
##.##.###.##.##
##.##.###.##.##
...............
##.##.###.##.##
##.##.###.##.##
.#.##.###.##.##
...............
##.##.###.##.##
##.##.###.##.##
...............
##.##.###.##.##
##.##.###.##.##
...............
...............
...............
.........

output:

#

result:

ok single line: '#'

Test #60:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

25 21
..................###....
....#.............###....
.......##.#..#.#.###.###.
......#.######....##.#.#.
..#.#.#.#.######.###.##..
..#.#....#.#.#...#.####..
.##..#...##.##..#....###.
#..##..##.......##.#.###.
..##.####.########.###...
#.######.##..##.######.#.
.#.#.......###...#..###..
.##..#.....

output:

.......#....####.#
......#........##.
..##.#.....##..#..
...........##...##
.#..#..##.#.#.....
#.......#.#...##..
#.#.......#.......
...###...##......#
##....#....#......
.##...............
..#.#...#.#...#...
......#.......#.#.
........#.....####

result:

ok 13 lines

Test #61:

score: 0
Accepted
time: 3ms
memory: 3676kb

input:

227 106
...##.#.##.##.#.###.####.###.#.##.#.####.#.##.#.###.####.###.#.#.####..##...##....###..#.###.#.#.##...##..####.##.####.#.##.#.####.#.##.#.####.##.####.#.##.#.##.........##.#.##.##.#.##.##.#.##...................................
..#.####.##.####.#.##.#.####.#.##..##.#.###.####.#.##.#.####.##....

output:

...#..............#.............................................#........................................#...............................
..#...........................................................#..............................................................#...........
...........................

result:

ok 20 lines

Test #62:

score: 0
Accepted
time: 11ms
memory: 4156kb

input:

222 274
.#.##.####..###.####.#.####.#.........#####.#.##.#...#.######...##..##.#.##.#.###.##..#...#...........#####.#.##.#...#.######...##..##.#.##.#.###.##..#...#...........#####.#.##.#...#.######...#..#.##.#.#..#.#.#...#####..#.
.#.#.#..#####.########.#..##..#.#.###..#..#....#...#........##..###.#...

output:

.######.#..###########..#.###.#.#.#..#...##.##.##.##...#.#.#####.....####..#.#...##.
....#..#.....#.#.#.###.##..#...###....###..##..#...#.#..##...#.#...##..##.#.#..##.#.
##########....#....#.....###....#.#..#..##....#..#...##..######.##...##..##...###...
#..#..##.#.......##.###.#....##.#..##.#.....#...

result:

ok 136 lines

Test #63:

score: 0
Accepted
time: 3ms
memory: 4344kb

input:

228 282
...........#.#.##.#.#.#.#..#.#.#..#........#.#####.#.#......#...######....####.#..#######..#######.....#...####.#..##....####.####...#...#.####.#...#####....#.#.#.#.#.........#.#....#.####.#.#.#.#..###.#..#.#.#.#..######...#.#.#
#.#...##.####.##.#.##...#.#.###..#...##.##.#..#.##.##.###.#.##....

output:

...........#....#.....#...#.#.......#.........#..#..........#.........#....#.....#.##.#.............#.......#..#....#..#...........#.........#.........#.................#............##.......#
#...#..##.....##....#..#.....#...#..#...##........##...#.#.......###.......#..#.#.......#...#......#..........

result:

ok 233 lines

Test #64:

score: 0
Accepted
time: 1ms
memory: 3904kb

input:

102 184
.##..###.....#.##.#..#.....#....#.#...#....#..####..#####.###...###.##..#.#.##.####.#.#.#.#.###.###...
#...#.#.#.####..##.#...##..##..##.##.#...#.##.##..##..###..##.##..#..#..#.#####..#.....#.#####...#..##
#.#.#.####.##....##.#..##.........#.....######.####.#######.#.###......##.##..####..#....

output:

.#.##.#.#..##..#.##........#....#.#.#..#.#.#..##........#...
#.....#.#...#.##.#...#...#.........##...#..#......#......#.#
..##.#...#......#....#..#....##...........#..##....#....#...
..###....##......#.##....#.#.....#..........######.....#....
.............#...#...#.....##..........##..#....#..##.##...

result:

ok 142 lines

Test #65:

score: 0
Accepted
time: 8ms
memory: 4052kb

input:

253 190
............................#.#.#...........#.#.#...........................#.#.#...........................#.#.#...........#.#.#............................................................................................................................
.........................................

output:

.......................................................#
........................................................
........................................................
........................................................
........................................................
#.................

result:

ok 6 lines

Test #66:

score: 0
Accepted
time: 2ms
memory: 3668kb

input:

156 102
......#...#.......#...#.......#...#...#.......#...#.......#...#..............#...#......##..##......##..##...#..#...##..##......##..##......#...#...........
.............................................................#...#.......#...#.....#.#.#.#...#.......#...#.......#.#.#.#..................

output:

......#......................................................................#..........#...........
.............................................................#.....................#...........#....
.....................#.................#...............................#.............................

result:

ok 46 lines

Test #67:

score: 0
Accepted
time: 2ms
memory: 4140kb

input:

57 214
#.#.#...#.#.#...........#.#.#...........#.#.#...#.#.#....
.........................................................
#.#.#...#.#.#...........#.#.#...........#.#.#...#.#.#....
.........................................................
#.#.#...#.#.#...........#.#.#...........#.#.#...#.#.#....
......

output:

#....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
....#
....#
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
.....
...#.
.....
.....
.....
.....
.....
.....
.....
.....
#....
.....
.....
.....
...

result:

ok 162 lines

Test #68:

score: 0
Accepted
time: 6ms
memory: 3948kb

input:

227 207
...........................................................................##.#.##.........................##.#.##.........................##.#.##...........##.##.##.##.##.##.##.##.##.##.###.##.##.##.##.##.##.##.##.##.##.......
...................................................................

output:

...........#.#...#....#..#.##.#......#..#.........#....#.#..#...#.....#..#...####...................#........#....#.#....#..##..#.#.....
...#.....#..............#.#....#.#....#...#................##.......##.....................#....#..#....#..#..#.#.....#...#..#.....#...#
##...#.............#.....#...

result:

ok 103 lines

Test #69:

score: 0
Accepted
time: 1ms
memory: 3692kb

input:

267 96
.........................................................................................................................................#.#.#.............................................................................................................................
............................

output:

..........#.......#....................#............................................................#.................#.............................................................#.....#..##....................#..
.....................................##...........#.#......#......#............#........

result:

ok 13 lines

Test #70:

score: 0
Accepted
time: 12ms
memory: 4212kb

input:

283 234
...........................................................................................#.........#.....#.........#.....#.........#.....................#.........#.....#.........#.....#.........#.....................#.........#.....#.........#.....#.........#.....................
...........

output:

...........................................................................................#.........#.....................
.........................#.................................................................................................
.................#.....................................

result:

ok 74 lines

Test #71:

score: 0
Accepted
time: 1ms
memory: 3652kb

input:

76 49
.......................................#.#...#...#.#........................
............................................................................
.......................................#.#...#...#.#........................
..................................................................

output:

#

result:

ok single line: '#'

Test #72:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

57 57
...............##.#.##...................................
...............##.#.##...................................
.........................................................
...............##.#.##...................................
.....##.##.##.##.##.#.##.##.##.##.##.....................
.......

output:

#

result:

ok single line: '#'

Test #73:

score: 0
Accepted
time: 1ms
memory: 3460kb

input:

74 61
....................#.#...#...#.#.........................................
..........................................................................
....................#.#...#...#.#.........................................
........................................................................

output:

#

result:

ok single line: '#'

Test #74:

score: 0
Accepted
time: 0ms
memory: 3560kb

input:

70 57
............................................##.#.##...................
............................................##.#.##...................
......................................................................
......#.....................................##.#.##...................
.............

output:

#

result:

ok single line: '#'

Test #75:

score: 0
Accepted
time: 2ms
memory: 3544kb

input:

56 49
......##.####...#.#.....#.#...####..#......#.......#....
......##.####..####..#..###..####..###.#................
...........#.#.#...#.#.#...#.#.#........................
......##.####..####..#..###..####..###.#................
......##.####...#.#.....#.#...####.##...................
....###.#...

output:

#

result:

ok single line: '#'

Test #76:

score: 0
Accepted
time: 9ms
memory: 4128kb

input:

263 231
.................................................................###...................................................................................................................................................................................................
...............................

output:

#.#
...
#.#

result:

ok 3 lines

Test #77:

score: 0
Accepted
time: 8ms
memory: 4004kb

input:

242 219
...................................................................................................................................................................###.###.....###.....###.###....................................................
....................................................

output:

#.#
...
#.#

result:

ok 3 lines

Test #78:

score: 0
Accepted
time: 10ms
memory: 4188kb

input:

260 239
.................................................................................................................................................................................................................................................................###
..................................

output:

#.#
...
#.#

result:

ok 3 lines

Test #79:

score: 0
Accepted
time: 9ms
memory: 4224kb

input:

243 238
....................................................................###.###.###....................................................................................................................................................................
...................................................

output:

#.#
...
#.#

result:

ok 3 lines

Test #80:

score: 0
Accepted
time: 10ms
memory: 4112kb

input:

236 258
.........................................................................................................#...#...#..........................................................................................................................
..........................................................

output:

#.#
...
#.#

result:

ok 3 lines

Test #81:

score: 0
Accepted
time: 7ms
memory: 3908kb

input:

249 184
............................................................................................................................................##.#.##......................................................................................................
.............................................

output:

..#..
..#..
#####
..#..
..#..

result:

ok 5 lines

Test #82:

score: 0
Accepted
time: 10ms
memory: 4208kb

input:

265 247
..............................................................................................................................................................###........................................................................................................
.............................

output:

..#..
..#..
#####
..#..
..#..

result:

ok 5 lines

Test #83:

score: 0
Accepted
time: 10ms
memory: 4068kb

input:

278 231
.......................................................................................................................................................................#.......#.......#..............................................................................................
................

output:

..#..
..#..
#####
..#..
..#..

result:

ok 5 lines

Test #84:

score: 0
Accepted
time: 10ms
memory: 4092kb

input:

244 240
...............................................#...#...#............................................................................................................................................................................................
..................................................

output:

..#..
..#..
#####
..#..
..#..

result:

ok 5 lines

Test #85:

score: 0
Accepted
time: 10ms
memory: 4100kb

input:

246 258
...............................................................................................................................................................................................................#...#.......#.......#...#..............
................................................

output:

..#..
..#..
#####
..#..
..#..

result:

ok 5 lines