CT28442

The Shimmering stamps of Paige

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Legend says the vault under the northern keep of Frostgate opens only for a perfect tally of stamps. Paige means to find out. 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 <= 247; 0 <= a[i],t <= 1000.

Example 1:

Input: 158 343 621 193 864 608 465 494 175 406 545 111 887 882 518 636 914 301 150 426 155 38 355 363 233 4 96 517 363 19 916 286 991 547 791 37 310 996 619 234 468 928 909 698 582 600 214 994 224 203 390 850 941 978 571 412 435 15 405 335 677 945 320 830 130 883 373 292 526 706 300 304 815 426 13 27 161 163 932 172 699 289 373 535 610 573 970 891 448 962 332 590 515 158 591 437 991 669 59 733 380 804 214 291 5 441 255 448 860 357 573 758 721 189 252 682 802 980 489 442 943 541 387 817 1000 590 774 335 94 743 238 867 337 290 273 598 488 803 247 127 444 300 684 962 315 790 974 991 838 204 789 805 211 55 366 333 849 532 450 178
Output: 103

Example 2:

Input: 225 227 473 157 189 872 17 818 306 931 353 73 725 800 176 415 569 720 106 305 98 477 192 628 141 353 487 973 39 362 613 961 494 404 844 192 533 210 208 703 795 387 305 624 16 645 384 455 206 576 517 852 465 705 73 657 631 944 331 538 47 769 192 257 115 330 530 310 717 724 382 328 794 483 505 753 148 845 740 514 162 729 694 181 367 991 43 680 652 523 393 398 724 909 556 471 76 766 853 403 583 160 687 93 789 836 355 453 672 234 640 579 47 932 623 797 879 991 963 851 156 736 731 18 702 893 927 60 70 326 802 763 393 230 386 243 973 465 150 486 810 151 514 603 814 385 82 601 248 909 345 353 850 953 169 883 334 206 867 86 178 410 576 89 774 70 496 114 882 973 784 859 551 399 46 692 235 800 810 628 434 347 497 320 843 117 694 280 119 327 664 235 713 891 294 969 852 219 803 197 967 565 496 746 654 244 801 334 278 839 5 989 344 930 436 603 284 911 498 714 676 109 683 614 701 295 479
Output: 177

Example 3:

Input: 225 208 356 670 343 844 614 598 921 509 478 943 672 50 319 718 320 962 687 133 91 179 13 608 759 532 672 164 353 935 837 161 500 448 121 251 355 689 921 230 565 23 969 618 366 886 470 26 244 500 437 208 842 353 451 233 176 2 346 529 352 477 800 479 708 385 107 583 928 874 748 523 817 234 212 437 122 104 503 823 82 802 704 865 513 962 600 288 821 747 888 771 236 750 950 36 79 803 661 738 858 689 505 449 944 598 494 472 211 538 264 163 183 402 428 814 910 105 737 370 826 609 511 4 747 688 680 105 693 55 637 247 184 541 817 398 986 523 652 84 325 87 75 336 895 794 653 146 418 45 583 502 258 228 432 326 99 595 169 288 413 692 793 631 751 833 752 363 920 753 183 794 185 967 447 129 1 141 150 126 618 854 109 428 811 757 882 580 97 664 421 273 291 98 122 90 189 589 635 706 920 541 196 126 617 658 916 827 626 559 876 414 989 800 469 887 839 935 413 264 674 861 43 720 937 239 675
Output: 176

Constraints:

1 <= n <= 247; 0 <= a[i],t <= 1000.

Loading...
Test Cases:No test cases
No test cases available.
The Shimmering stamps of Paige - EASY Coding Problem | CodeTikki