A=B
评价数不足
A Loaf of Almond Cherry Bread
   
奖励
收藏
已收藏
取消收藏
标签: level
文件大小
发表于
98.272 KB
2022 年 4 月 13 日 下午 5:22
1 项改动说明 ( 查看 )

订阅以下载
A Loaf of Almond Cherry Bread

描述
"Please don't put almonds into bread, especially cherry bread!"

Input: A string of "a", "b", "c".
Output: A binary number, the tastiness point of the most tasty sub-string (or maybe, sub-bread).
Each "b" provides 1 point and each "c" provides -1 point. Any "a" should be avoided.
Constraint: 1 <= Input length <= 7
Input contains at least one "b".
热门讨论 查看全部(1)
0
2024 年 2 月 18 日 上午 7:42
The challenge is 8. Can 7 be reached?
295820878
2 条留言
Zill  [作者] 2022 年 5 月 10 日 上午 8:01 
@ymfact oh of course, but 'a' should be avoided in subbread
ymfact 2022 年 5 月 8 日 下午 10:01 
babb should be a subbread of babb