MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/questions/ANTIPAL.cpp:12–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// #define S .second
11
12int main() {
13 fasterDaddy;
14 int t;
15 cin>>t;
16
17 while(t--){
18 int n;
19 cin>>n;
20 if(n%2==1) cout<<"-1\n";
21 else{
22 string s="";
23 for(int i=0;i<n;i++){
24 if(i%2==1) s+="0";
25 else s+="1";
26 }
27 cout<<s<<"\n";
28 }
29 }
30 return 0;
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected