Submit | All submissions | Best solutions | Back to list |
ENCAROC - Occurrences of a Character |
Given a string and a character, calculate the number of occurrences of that character in the string.
Input
The input consists of two lines. The first contains a string S, while the second contains a character C to be countedÂ
Output
The number of occurrences of the character C in the string S
Example
Input: hello world o Output: 2
Added by: | giorgio.piccardo |
Date: | 2018-10-03 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | NCSHARP JULIA PYPY3 PYTHON3 |