PSTRING  Remove The String
Given two strings X and Y, your task is find the minimum number of characters to be removed from X in order to obtain a string X' that does not contain Y as a substring.
Input
Input contains some test cases. Each test cases contains two lines, First is X and second is Y. Length of X <= 10000, Length of Y <= 1000.
Output
For each test cases, You should output exactly one integer is the minimum number of characters to be remove
Example
Input: ababaa aba Output: 1
hide comments
chodermal:
20191230 22:34:45
abba ne harmonium baja dala 

Shubhojeet Chakraborty:
20180807 11:11:08
Phew, nice concept,better time limit,made too many silly mistakes,glad to AC this.Kudos to the setter. 

MD. Shakhawat hossain sajal:
20171113 19:01:11
It is abbaa. Last edit: 20171113 19:01:28 

xxbloodysantaxx:
20160312 10:16:13
There are multiple Test Cases my solution was correct from the beginning!


invoker_war:
20151029 11:10:37
how many test cases are there? 

hnvahidi:
20150904 13:37:30
are x and y nonempty strings?


Petar Nyagolov:
20150804 13:29:51
My 100th :P Nice problem! :) 

osama:
20150609 10:00:10
any hint please this my code


Muhammad Rifayat Samee (Sanzee):
20150423 22:20:29
are all the char from 'a' to 'z' ?? 

Luka Chumburidze:
20150218 20:19:10
Jose Luis Castrillon Garrido try to use

Added by:  Hoang Hong Quan 
Date:  20060117 
Time limit:  1.265s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: NODEJS PERL6 VB.NET 
Resource:  A contest of Romanian 