- 取石子
压缩技术
- 2025-7-12 14:51:24 @
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x;
int cnt=0;
bool flag=0;
cin>>n;
while(cnt<n*n){
cin>>x;
while(x--){
cout<<flag;
cnt++;
if(cnt%n==0) cout<<"\n";
}
flag=!flag;
}
return 0;
}
0 条评论
目前还没有评论...
信息
- ID
- 116
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 8
- 标签
- 递交数
- 56
- 已通过
- 9
- 上传者