STRHH - Half of the half


Given a sequence of 2*k characters, please print every second character from the first half of the sequence. Start printing with the first character.

Input

In the first line of input you are given the positive integer t (1<=t<=100) - the number of test cases. In the each of the next t lines, you are given a sequence of 2*k (1<=k<=100) characters.

Output

For each of the test cases please please print every second character from the first half of a given sequence (the first character should appear).

Example

Input:
4
your 
progress 
is 
noticeable

Output:
y
po
i
ntc

hide comments
mr_parallel: 2024-09-29 15:10:14

Done

Last edit: 2024-09-30 09:21:42
matwar: 2023-07-03 06:43:08

Great, expected output is identcical to mine output, bo I'm getting wrong answer...

trifun: 2023-06-14 18:51:09

Had to use ceil for rounding up to upper number.

the_outsider: 2021-09-03 15:32:23

how to do it in c

kazeper: 2021-08-02 15:56:15

At ideone length of "your" is equal 5 :X
This is why It shows me 'wrong answer'

Last edit: 2021-08-02 15:56:51
mehraj_mi2: 2021-07-08 16:11:14

Simple problem

donght: 2021-06-25 15:49:08

Ao that day

rutvi_008: 2021-05-22 16:36:14

I am getting the correct answer on my compiler but here it is showing compilation error.

amisha_2001: 2021-05-14 19:02:41

i am getting the correct answer on my compiler but here it is showing runtime error.

k_chetan28: 2021-03-30 16:27:02

run time error even all test cases passed. sigabrt


Added by:kuszi
Date:2012-09-01
Time limit:1s-1.289s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64