Untitled
Anonymous
c_cpp
04/16/2026 5:40 AM
784 B
9
Indexable
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
#define int long long
const int N = 1e6 + 10;
const int inf = 1e15;
const int mod = 998244353;
inline void solve(){
int n;cin >> n;
if(n == 2){
cout << "01";
}
else{
string ans(n, '1');
ans.front() = ans.back() = '0';
cout << ans;
}
}
int32_t main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int t = 1;
cin >> t;
while(t--){
solve();
cout << '\n';
}
return 0;
}
Editor is loading...
Leave a Comment