#K60637. Funding Goal Checker

    ID: 31131 Type: Default 1000ms 256MiB

Funding Goal Checker

Funding Goal Checker

You are given a list of contributions made by team members and a funding target. Your task is to determine whether the total contributions meet or exceed the funding goal.

Mathematically, if \(S\) is the sum of contributions and \(T\) is the target funding, you need to check whether \(S \geq T\). If this condition holds, print True; otherwise, print False.

inputFormat

The input consists of two lines. The first line contains two integers (n) and (T), where (n) is the number of contributions and (T) is the funding target. The second line contains (n) space-separated integers representing the contributions. If (n = 0), the second line will be empty.

outputFormat

Output a single line containing True if the sum of contributions is greater than or equal to (T), otherwise output False.## sample

4 200
50 100 25 75
True