#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
void solve() {
int a,b,x;
cin >> a >> b >> x;
if(x==0) {
if(a%2 || b%2) return void (cout << -1 << endl);
if(a>0) {
for(int i = 1;i<=a;i++) {
cout << '0';
}
}
if(b>0) {
for(int i = 1;i<=b;i++) {
cout << '0';
}
}
return void (cout << endl);
}
if(a<x/2 || b<x/2 || (a-x/2)%2 || (b-x/2)%2) return void(cout << -1 << endl);
for(int i = 1;i<=x/2-1;i++) {
cout << "01";
}
for(int i = 1;i<=a-(x/2-1);i++) {
cout << '0';
}
for(int i = 1;i<=b-(x/2-1);i++) {
cout << '1';
}
return void(cout << endl);
}
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int t = 1;
while (t--) {
solve();
}
}
挺无聊的讨论

京公网安备 11010502036488号