Files
python/LuoGu/RuMen/P1319.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

34 lines
581 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int N = 0;
cin >> N;
int a;
int count = 0;
int cishu = 0;
while (1) {
cin >> a;
cishu++;
for (int i = 0; i < a; i++) {
if (cishu % 2 == 0) {
cout << "1";
} else {
cout << "0";
}
count++;
if (count % N == 0) {
cout << endl;
}
}
if (count == N * N) {
break;
}
}
return 0;
}