Saleh127

CF 1367A

Jun 16th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define Faster ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. Faster
  9.  
  10. test
  11. {
  12. string a,c="";
  13. ll d,e,f,i,j,k,l;
  14. cin>>a;
  15. l=a.size();
  16. c+=a[0];
  17. for(i=1;i<l;i++)
  18. {
  19. if(i%2)
  20. {
  21. c+=a[i];
  22. }
  23. }
  24. cout<<c<<endl;
  25. }
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment