Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define fast()(ios_base::sync_with_stdio(0),cin.tie(NULL));
- int main()
- {
- int t;
- cin>>t;
- while(t--)
- {
- string s;
- cin>> s;
- int i,len=s.size();
- bool allpos=true;
- for(i=0;i<len-1;i++)
- {
- if(s[i]!=s[i+1])allpos=false;
- }
- if(allpos)cout<<s<<endl;
- else
- {
- for(i=0;i<len;i++)cout<<"01";
- cout<<endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement