WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Counting the number of occurrences of the string

Threads: Enter two strings s1 and s2 on. Count the number of occurrences of s2 in s1. Not case sensitive.
Input: two lines, each containing a string respectively s1, s2.
Output: Some of the frequency of occurrence of s2 in s1.
For example:

input:
Dao Thi Hong Mai Hoa
Who
output:
1

You are not logged in? Log in to Submit Now!

12 Comments

Add a Comment