Submit | All submissions | Best solutions | Back to list |
CAT - Copy Cat |
Tina and Mina are twins. Both of them are same. No one can find any difference between them. Sometime they make fun with each other by copying one's speech. The called the game "Copy Cat".
Rules of the game is to copy what other talks. Tina starts the game. At first she told Mina that she will tell 2 words. Then she says "Expecto patronum". Now Mina has to say what Tina says. After that Mina will say something and Tina has to tell that and the game goes on. Each time number of words has told before.
Mina is a little bit weak in this game. Your work is to help Mina to win the game.
Input
There will be several test cases.
Each test case begins with the number of words n (1 <= n <= 100) said by Tina.
Then a string of n words which was said my Tina. Each word will be separated by minimum one space. No word will be more than 20 characters.
Output
Output will be the string said by Tina.
Example
Input: 2 Expecto patronum 3 This is input Output: Expecto patronum This is input
Added by: | Shafayat Hossain Khan |
Date: | 2016-08-17 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: GOSU |
hide comments
2016-08-23 02:29:43 Shafayat Hossain Khan
My pleasure |
|
2016-08-22 18:42:18
Thank you very much. I have a much better understanding of what this problem requires. |
|
2016-08-17 20:33:33 Shafayat Hossain Khan
Edited. Last edit: 2016-08-17 22:04:43 |
|
2016-08-17 20:02:58
Input does not specify whether there is only one test case or if there are several. The sentence describing output is illegible, please rewrite so it can be understood better. |