HBC211809SmartBrowser题解

初见你 算法基础篇 44 0
想要成为编程高手?那就来试试全网最全C++题库,让您在练习中快速成长。
In some social platforms, there are some netizen who like to post "www". Since the string is like the grass, which contains plenty of "/" shapes, so there are also some netizen who post "grass".As a fast, smart, and convenient browser, MI Browser can recognize this kind of text and show some special effects. Specifically, given a string, MI Browser will determine the number of "/" shapes made by character "w", where "w" itself and the gap between two adjacent "w"s both give one `/` shape. If still not clear, please turn to sample input/output for more details.As a MI fan, you want to detect the relationship between the special effects and the number of "/" shapes, so the thing you should do first is to determine the number of "/" shapes by yourself.

In some social platforms, there are some netizen who like to post "www". Since the string is like the grass, which contains plenty of "/" shapes, so there are also some netizen who post "grass". As a fast, smart, and convenient browser, MI Browser can recognize this kind of text and show some special effects. Specifically, given a string, MI Browser will determine the number of "/" shapes made by character "w", where "w" itself and the gap between two adjacent "w"s both give one `/` shape. If still not clear, please turn to sample input/output for more details. As a MI fan, you want to detect the relationship between the special effects and the number of "/" shapes, so the thing you should do first is to determine the number of "/" shapes by yourself.

HBC211809SmartBrowser题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)

标签: HBC211809SmartBrowser题解