| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 116 | 78 | 51 | 67.105% |
Eelco has recently started to gain interest in the field that studies the origin of words: etymology. He especially likes how words can evolve in many different ways: pronunciation changes over time, words are borrowed from different languages, and the meaning of words can change based on culture. Eelco is eager to attend the Networking With Etymologists: Revolutionary Conference for the first time ever. To make a good first impression, he is going to present a completely new method to make new words from existing words.
To make a new word from an existing word $s,ドル Eelco proposes to take every second letter of $s+s,ドル starting with the first letter. For example, applying this method to the word "etymology" would result in "eyooytmlg". Of course, to design even more words, this process can be repeated many times. Eelco would like to prepare a list of new words to present at the conference, so he writes a program that applies his method some predetermined number of times.
The input consists of:
a-z), the original word.Output the resulting word after applying the method to the original word $k$ times.
9 1 etymology
eyooytmlg
4 1 word
wrwr
5 1000000000000000000 delft
delft
5 5 eceol
eelco
ICPC > Regionals > Europe > Northwestern European Regional Contest > NWERC 2024 E번