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
chandu_atina:
2015-10-01 13:29:56
It times out with "Python 3.4" but works fine when "Python 3 (python 3.4)" is selected. Don't know why?? |
|
Monkey D. Luffy:
2015-09-28 21:14:52
My code is working after I switched from scanf to cin and printf to cout . Problem setter or spoj moderator can u please confirm that it is working with scanf or printf or not . If not then what is the cause of this problem. |
|
suj88ramesh:
2015-09-25 12:51:04
my code passes on ideone and devc++, here it gives a runtime error .. why >> |
|
Prakhar Dev Gupta:
2015-09-23 20:56:43
Gives me Runtime Error though it passes every test case? Why?? Last edit: 2015-09-23 20:57:11 |
|
dinesh_2903:
2015-09-18 19:04:23
i can't understand 2*k character means. |
|
carofe82:
2015-09-13 07:58:00
If I submit the solution with "Python 3.4" it times out. However, with "Python 3 (python 3.4)" it works. !?!?!?! |
|
satylogin:
2015-09-11 19:25:47
my code works fine on ideone but it giver compilation error here
|
|
surf666:
2015-09-11 09:23:40
output for "smile" ??
|
|
dubeypranav4:
2015-09-08 07:36:39
mine too
|
|
Vivek:
2015-09-07 19:04:48
If using C++ std::string, take care of reading String using getline() after cin. Simple problem. AC in 5 min. |
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 |