CT27287

The tickets at Firefly Mere

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the lantern lake of Firefly Mere, Bhavi studies rows of tickets entries. One clean number will settle the guild's oldest argument. 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 <= 226; -100 <= a[i],t <= 1000000.

Example 1:

Input: 83 878637 57583 884514 96126 174094 271160 613951 546166 257662 639420 281352 576432 655926 911198 441206 981358 235225 265844 434945 264848 774888 466438 590727 595933 994528 489098 366870 170015 871020 703515 539061 456637 126545 860191 40533 622609 397099 814343 275436 178886 843254 663287 508567 183766 629887 157167 303949 749155 56810 517119 935819 436778 272631 192818 707655 65966 578893 960752 574040 59218 285047 504466 781316 899829 423810 799984 96644 259550 993031 132175 767317 922683 645310 921185 836165 80389 341690 480109 125093 671042 516455 75645 724798 964141
Output: 11

Example 2:

Input: 23 826288 649796 37974 364416 506741 949509 13565 473765 627528 251444 318146 470888 451154 34269 185443 421370 691307 415197 54061 490743 535528 465867 211384 21373
Output: 1

Example 3:

Input: 92 717891 570757 680735 774758 626276 438970 658123 186113 775639 123994 863721 734477 971958 463679 964413 521133 765447 527731 937305 665244 78249 748419 348867 333303 41696 751320 73329 856394 657493 818182 720148 260947 888158 730256 347213 435747 150096 911949 554975 276440 689683 818056 806208 562060 648486 311751 591119 819871 644851 271672 435742 995062 125877 45674 87990 507210 909310 316827 921813 271787 352754 64754 13842 905147 613301 231475 275756 457666 980593 530100 122699 728206 159070 580505 403488 359373 883175 435607 916701 279342 36420 372210 829077 702439 489699 157672 547606 191302 20693 232702 781507 230478 982961
Output: 30

Constraints:

1 <= n <= 226; -100 <= a[i],t <= 1000000.

Loading...
Test Cases:No test cases
No test cases available.
The tickets at Firefly Mere - EASY Coding Problem | CodeTikki