Task Failed Successfully ABC 412 Completed

Problem 4 of 50

Easy

lightbulb What 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

code Python Editor
Loading Python...
Test Results
tips_and_updates 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