一本通1097

//qf
#include<bits/stdc++.h>
#define f(i,j,n) for(register int i=j;i<=n;i++)
using namespace std;
typedef long long ll;
inline ll read(){
	ll x=0;
	int f=1;
	char ch=getchar();
	while(!isdigit(ch)) {
		if(ch=='-') f=-1;
		ch=getchar();
	}
	while(isdigit(ch)) x=(x<<1)+(x<<3)+ch-48,ch=getchar();
	return x*f;
}
int a=read(),b=read();
char ch=getchar();
bool x;
signed main(){
	cin>>x;
 	if(x) f(i,1,a){
		    f(j,1,b) putchar(ch);
			puts("");
		}
	else f(i,1,a){
			f(j,1,b)
				if((i==1)||(i==a)||(j==1)||(j==b)) putchar(ch);
				else cout<<" ";
			puts("");
		}
	puts("");
 	return 0;
}
posted @ 2019-04-12 21:56  Isaunoya  阅读(266)  评论(0编辑  收藏  举报
TOP