Submit | All submissions | Best solutions | Back to list |
FUACM005 - Problems 5: String |
ML have a string S and a character Y. ML want to count the number of occurrences of Y in S. Can you help him?
Note: length of S <=10, S don't have spaces character
Input
String S and Char Y.
Output
Number of occurrences of Y in S.
Example
Input: Fuk10kACM k Output: 2
Added by: | Gầy :)) |
Date: | 2014-11-19 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |