Mock CCC '20 Contest 1 J3 - Win

View as PDF

Submit solution

Points: 5 (partial)
Time limit: 2.0s
Memory limit: 128M

Author:
Problem type

Given a string containing lowercase latin characters, can you split the string by a character?

Input Specification

The first line will contain the string S. The length of S is between 1 and 1000 characters, inclusive. S will only contain lowercase latin characters.

The second line will contain a character c. c is a lowercase latin character.

Output Specification

Split the string S by c, and output each resultant string on its own line.

Sample Input

abcdefabcdefabcdefe
f

Sample Output

abcde
abcde
abcde
e

Comments

There are no comments at the moment.