CT1121

Xara's Above Threshold Ledger

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Xara inherited the mint at the shipyard of Keelwind along with its curious bookkeeping system for stamps. Time to make sense of it. 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 <= 54; -1000000 <= a[i],t <= 1000000000.

Example 1:

Input: 29 555325066 267844999 124679230 663929687 10688239 257400281 441736418 800390450 297969144 510805300 810237339 953293069 323590408 130456685 828011523 237727912 498906854 966424799 490094165 647672419 440975084 167136645 422992268 402485949 472736787 163906979 946803182 582462478 241850317 121006279
Output: 9

Example 2:

Input: 51 270468937 94329963 283769477 905127719 301586347 224039988 574496078 248010527 505992836 37302467 584962071 828255741 241606882 417882665 502766924 8165228 73043342 866819162 819705727 431789256 361326220 1639278 280604583 279232567 246127958 187361935 553632331 11378690 808750751 307521045 342864375 239534543 281313279 963296629 776191930 993053662 610373248 334867528 569747414 903598128 895756286 690339790 28629588 590552969 530355956 353339133 98387541 570329905 821013206 947940902 32915520 698579116
Output: 36

Example 3:

Input: 36 373735757 701021735 572745797 60055429 14856303 108722304 762697194 140763716 469173472 172608429 781212363 408131461 846234938 491838534 873817953 265948872 93399620 491045201 473878004 593843623 518278033 19930040 748339744 751636009 887734257 714300115 210904626 757380493 278149260 396058341 551282296 566220174 825865134 623781367 67758016 855011373 157081657
Output: 24

Constraints:

1 <= n <= 54; -1000000 <= a[i],t <= 1000000000.

Loading...
Test Cases:No test cases
No test cases available.
Xara's Above Threshold Ledger - EASY Coding Problem | CodeTikki