Task Failed Successfully
ABC 412Problem 4 of 50
EasyWhat to do
You need to count how many days Takahashi did more tasks than he planned. For each day, compare the number of tasks he actually completed with his goal and keep track of the days he succeeded.
Key Concepts
if-statements
loops
basic math
input/output
Examples
Input:
[2, 5, 5, 6], [8, 5, 4, 7]
Output:
2
Input:
[1, 1, 1, 1, 1], [1, 1, 1, 1, 1]
Output:
0
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...