Daily Cookie
ABC 382Problem 34 of 50
EasyWhat to do
You have a row of boxes, some with cookies and some empty. After a certain number of days, you will eat one cookie from a box each day. We want to find out how many boxes will be empty after those days are over.
Key Concepts
Strings
Loops
Counting
Conditionals
Examples
Input:
5 2
.@@.@
Output:
4
Input:
3 3
@@@
Output:
3
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...