407088: GYM102697 059 Multiply Characters
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
059. Multiply Characterstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Take a single String as input, and output the same string after repeating certain characters by a certain number. The character 'h' should be repeated 5 times, the character 'c' should be repeated 2 times, and the character 'z' should be repeated 12 times.
InputA single string S containing the string to be modified.
OutputA single string S after being modified.
ExampleInputschizophreniaOutput
scchhhhhizzzzzzzzzzzzophhhhhreniaNote
All test cases will be completely lowercase.