АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

158. Searching of Phrase in String

Time Limit: 1 seconds
Memory Limit:64000KB
Points:2
View Problem Statistics Submit Problem added Administrator

Поиск фразы в строке

Напишите программу, подсчитывающую количество вхождений заданной вами фразы в введенной строке без учета регистра. Буквы латинские!

Входные данные

Строка не более 256 символов.
Фраза.

Выходные данные

Количество вхождений

Пример входных данных

This is very simple programm. It's true.
is

Пример выходных данных

2
Автор: Барламов А.Г. aka SpIInner

View Problem Statistics Submit Author/source:
Educational Courses / Programming and Basics of Algorithmization / Strings /
157. Searching of Letter in String 158. 124. Shortest Word 159. Uppercasing 163. Удаление символа
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.437 sec.
© Copyright VSTU, AVT, Nosov D.A.