icetrae @ 2019-12-13 19:44:07
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,w,k=0;
char a[1001],b[10001]= {'0'};
cin>>n;
gets(a);
for(int i=0; i<strlen(a); ++i)
{
if(i%2==0)
{
for(int j=k; j<a[i]; ++j)
b[j]='0';
k=b[a[i]+1];
}
else
{
for(int j=k; j<a[i]; ++j)
b[j]='1';
k=b[a[i]+1];
}
}
w=0;
for(int i=0; i<n*n; ++i)
{
cout<<b[i];
w++;
if(w==n)
{
cout<<endl;
w=0;
continue;
}
}
}
by 会宁狐狸 @ 2019-12-13 20:06:36
.....
by icetrae @ 2019-12-13 20:55:26
@会宁狐狸 什么意思
by Movt @ 2019-12-13 21:32:39
~
by 会宁狐狸 @ 2019-12-14 18:54:21
大佬…您的名字不会被封杀掉吗…
by icetrae @ 2019-12-20 18:50:24
@会宁狐狸 有可能偶