CBOJ 2022 Welcome Contest Problem 1 - Kernel Bye Computer Science Lovers
Recently, Colonel By has stated that clubs are not allowed to use discord servers as a means of communication. Therefore, in accordance with this new policy, the Colonel By computing club wants to create a program that will replace every instance of discord with classroom.
Since computing club is busy with other things, they have given the task to you!
Input Specification
The first and only line of input will contain a string consisting solely of spaces and lowercase letters.
Note: Substrings with consecutive instances of discord, such as discordiscord, will not appear in the string.
Output Specification
Output the original string but with each instance of the word discord being replaced by classroom.
Sample Input 1
meeting times will be posted on discord
Sample Output 1
meeting times will be posted on classroom
Sample Input 2
i really like discor because discord is user friendly
Sample Output 2
i really like discor because classroom is user friendly
Comments