Task Failed Successfully

ABC 412

Problem 4 of 50

Easy

What to do

Given two lists of equal length — `goals` (planned tasks per day) and `actual` (tasks completed per day) — count how many days Takahashi completed strictly more tasks than his goal. For example, goal=2 and actual=8 counts as exceeded.

Key Concepts

if-statements loops basic math input/output

Examples

Input: goals = [2, 5, 5, 6], actual = [8, 5, 4, 7]

Output: 2

Input: goals = [1, 1, 1, 1, 1], actual = [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...