for _ in range (int(input())):
n = input()
print(n[::2]+n[-1])
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,i;
cin>>t;
char A[100];
while(t--)
{
cin>>A;
int len=strlen(A);
cout<<A[0]<<A[1];
for(i=3;i<len;i++)
{
if(i%2!=0)
cout<<A[i];
}
cout<<endl;
}
return 0;
}
Teddy and Tweety | Partitioning binary strings |
Special sets | Smallest chosen word |
Going to office | Color the boxes |
Missing numbers | Maximum sum |
13 Reasons Why | Friend's Relationship |
Health of a person | Divisibility |
A. Movement | Numbers in a matrix |
Sequences | Split houses |
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |
Duration | Birthday Party |
e-maze-in | Bricks Game |