Realization of Huawei od test questions in C language [Number of wild geese]

        All topics are available in five languages. C implementation directory , C++ implementation directory , Python implementation directory , Java implementation directory , JavaScript implementation directory

topic

A group of wild geese is flying south, and a string is given to record the calls of wild geese heard by tourists on the ground. Please give at least how many wild geese make the calls.

concrete:

1. The complete cry of wild geese is "quack". Because there are multiple wild geese quacking at the same time, multiple "quack" may be mixed in the string.

2. Wild geese will follow in turn

Guess you like

Origin blog.csdn.net/misayaaaaa/article/details/130728353