Đếm số lần xuất hiện

View as PDF

Submit


Author:
Problem type
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points: 5 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bé Bo nhận được một mảnh giấy trên đó có ghi một đoạn ký tự chỉ có các ký tự latin in thường \(('a'..'z')\).

Yêu cầu

  • Bạn hãy cho biết trong xâu ký tự Bé Bo nhận được có bao nhiêu lần xuất hiện đoạn ký tự \('virus'\).

Input

  • Gồm một xâu kí tự có độ dài không quá \(250\) kí tự.

Output

  • Kết quả bài toán.
Sample
Input
hpvirushnviruss
Output
2

Comments

Most recent
Loading comments...

There are no comments at the moment.