CT898

The Rustwood Above Threshold

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Iris found an old ledger of scrolls in the granary attic at the fox den of Rustwood. The margin notes pose a precise question. Task: Read n integers and a threshold t; print how many exceed t. Input format: First line: n and t. Second line: n space-separated integers. Output format: Print the count of values strictly greater than t. Constraints: 1 <= n <= 73; -1000000 <= a[i],t <= 10.

Example 1:

Input: 8 -816350 -364816 -571532 -535772 -344911 -475573 -726046 -620748 -513779
Output: 8

Example 2:

Input: 47 -523364 -993457 -741292 -857790 -325835 -887089 -634884 -237530 -715934 -834999 -682278 -218131 -282026 -561255 -107681 -109258 -11160 -211918 -760539 -153566 -785708 -400542 -477929 -801815 -861744 -922427 -728146 -323810 -450978 -950635 -787524 -548215 -963031 -502465 -470193 -265833 -320063 -371186 -179305 -645662 -12580 -822568 -245996 -400892 -30838 -127456 -848422 -736301
Output: 24

Example 3:

Input: 6 -202242 -114696 -78585 -296999 -473418 -989387 -574626
Output: 2

Constraints:

1 <= n <= 73; -1000000 <= a[i],t <= 10.

Loading...
Test Cases:No test cases
No test cases available.