B. 【深基6.习3】单词覆盖还原

    Type: RemoteJudge 1000ms 256MiB

【深基6.习3】单词覆盖还原

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

一个长度为 ll 的字符串中被反复贴有 boygirl 两单词,后贴上的可能覆盖已贴上的单词(没有被覆盖的用句点表示),最终每个单词至少有一个字符没有被覆盖。问贴有几个 boy 几个 girl

输入格式

一行被反复贴有 boygirl 两单词的字符串。

输出格式

两行,两个整数。第一行为 boy 的个数,第二行为 girl 的个数。

......boyogirlyy......girl.......

4
2

提示

数据保证,3l2553\le l\le255,字符串仅仅包含如下字符:.bgilory\texttt{.bgilory}

补充作业

Not Claimed
Status
Done
Problem
3
Open Since
2025-1-19 0:00
Deadline
2025-1-27 23:59
Extension
24 hour(s)