|
Time |
Memory |
Case 1 |
1 sec |
32 MB |
Case 2 |
1 sec |
32 MB |
Case 3 |
1 sec |
32 MB |
Case 4 |
1 sec |
32 MB |
Case 5 |
1 sec |
32 MB |
Description
Define three functions:
- Reverse String: One line of input, one line of output, print the reversed string
- Count Vowels: One line of input, one line of output, print the number of vowels in the input
- Combine Strings: Two line of input, one line of output, join the two inputs with a single space character and print it
The first line of input will be a number indicating which functions to be called, followed by one/two lines of input depending on the function being called. Perform the operation accordingly and print the output.
Input
Function number (1/2/3)
A string
Another string ONLY if function number is 3
Output
Output of the corresponding function executed on the function
Tags