fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int T;
  6. cin >> T;
  7. cin.ignore();
  8. while (T--) {
  9. string s;
  10. getline(cin, s);
  11. for (int i = 0; i * 2 < s.size(); i += 2)
  12. cout << s[i];
  13. cout << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 3464KB
stdin
4
your
progress
is
noticeable
stdout
y
po
i
ntc