0% found this document useful (0 votes)
25 views1 page

CSEC-ASTU 2021 Problem E Solution

The document describes a coding competition problem that involves taking a greeting as input of up to 1000 characters in length of the form "he...ey" and outputting a response with twice as many e characters. It provides an example where the input "hey" would produce the output "heey" and an input of "heeeey" would produce an output of "heeeeeeeey". The problem has a 1 second time limit and the balloon color given is yellow.

Uploaded by

Abraham Mekuria
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

CSEC-ASTU 2021 Problem E Solution

The document describes a coding competition problem that involves taking a greeting as input of up to 1000 characters in length of the form "he...ey" and outputting a response with twice as many e characters. It provides an example where the input "hey" would produce the output "heey" and an input of "heeeey" would produce an output of "heeeeeeeey". The problem has a 1 second time limit and the balloon color given is yellow.

Uploaded by

Abraham Mekuria
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

The 2020/21 CSEC-ASTU Competitive Programming Division

Entrance Contest, August 15, 2021

Problem E: Greetings!
Input file: standard input
Output file: standard output
Time limit: 1s
Balloon color: Yellow

Now a day in some conversation when one says hey the other one responds heey, which is 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.

Input
The input consists of one line containing a single string s as specified, of length at least 3 and at
most 1000.

Output

Output the required response.

Examples
Sample Input 1 Sample Output 1
hey heey

Sample Input 2 Sample Output 2


heeeey heeeeeeeey

Page 1 of 1

You might also like