#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
if ((n - 1) % 4 == 0&&n!=1) {
for (int i = 1; i <= n/4; i++)
cout << "0011";
cout << 0 << endl;
return 0;
} else cout<<-1<<endl;
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
if ((n - 1) % 4 == 0&&n!=1) {
for (int i = 1; i <= n/4; i++)
cout << "00110"<<endl;
return 0;
} else cout<<-1<<endl;
return 0;
}
为什么上面的能过,下面的不行