시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 512 MB | 576 | 518 | 481 | 90.926% |
Now that Snapchat and Slingshot are soooo 2018, the teenagers of the world have all switched to the new hot app called BAPC (Bidirectional and Private Communication). This app has some stricter social rules than previous iterations. For example, if someone says goodbye using Later!
, the other person is expected to reply with Alligator!
. You can not keep track of all these social conventions and decide to automate any necessary responses, starting with the most important one: the greetings. When your conversational partner opens with he...ey
, you have to respond with hee...eey
as well, but using twice as many e
’s!
Given a string of the form he...ey
of length at most 1000, print the greeting you will respond with, containing twice as many e
’s.
Output the required response.
hey
heey
heeeeey
heeeeeeeeeey
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2019 Preliminaries G번