Skip to main content

Practice · 1 of 5

Above the Threshold

CHALLENGE
Difficulty: beginner+25 XP

**Description:** Given n numbers and a threshold t, print how many numbers are strictly greater than t. **Input:** Line 1: n t (1 ≤ n ≤ 10^5, −10^9 ≤ t ≤ 10^9). Line 2: n numbers. **Output:** One integer. **Example:** 5 3 / 1 4 3 7 2 → 2 (4 and 7).

Back to lesson: Practice: Array Mechanics Set