单词寻宝
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.
题目描述
给定一个字符串,请判断能否从该字符串中选出 7 个字符(每个字符只能使用一次),并将它们重新排列后组成字符串 "baoshan"。
输入格式
输入为一个仅由小写英文字母组成的字符串。
输出格式
如果能够从输入字符串中选出 7 个字符,组成 "baoshan",则输出 "Yes";否则输出 "No"。
levrlvirhevbaodfsraern
Yes
strvstrhrtgsdfdsbtrg
No
数据规模与约定
对于所有测试数据,保证:输入字符串的长度不超过 1000。
约定:输入字符串的长度为
| 测试点编号 | |
|---|---|
| 1,2 | |
| 3,4,6 | 100 |
| 5,6 | 500 |
| 7,8,9,10 |
保山市 2025 年中小学生青奥赛选拔赛(信息学)
- Status
- Done
- Rule
- OI
- Problem
- 5
- Start at
- 2025-11-28 8:00
- End at
- 2025-11-28 11:30
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 290