CT27446

The Above Threshold of Glowfen

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The harbor bell rings at the lantern district of Glowfen; Rhys weighs the day's tickets manifests and starts the calculations. 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 <= 925; 0 <= a[i],t <= 1000.

Example 1:

Input: 907 824 227 504 389 904 825 724 797 609 336 991 878 862 99 492 493 299 858 258 776 372 364 471 531 381 549 681 246 853 352 577 386 622 277 288 885 728 378 980 177 706 37 98 457 658 21 3 280 543 980 435 897 540 701 880 365 142 567 577 268 50 969 403 67 768 167 125 144 654 874 340 697 300 745 580 277 832 808 475 171 787 88 241 215 603 355 557 775 834 304 702 278 775 495 309 816 112 350 746 942 739 23 627 976 973 75 842 799 386 129 783 394 17 522 279 532 10 78 757 244 968 150 455 468 687 548 229 926 295 810 521 934 388 97 387 837 302 764 376 320 448 178 832 911 344 832 670 892 982 58 477 983 281 174 478 215 416 567 626 975 109 366 418 435 505 936 677 479 274 970 595 313 259 944 778 730 913 199 417 9 349 490 531 6 62 524 686 607 153 819 207 861 539 946 306 131 370 368 218 135 708 376 653 351 7…
Output: 154

Example 2:

Input: 483 676 479 249 208 50 748 174 255 931 160 941 884 852 881 904 497 484 242 225 188 737 195 621 964 589 842 384 330 523 928 938 449 968 676 215 789 405 842 262 32 833 57 740 391 600 772 853 759 279 5 369 535 262 730 270 611 311 585 164 473 247 354 136 584 405 866 428 970 956 449 359 996 278 996 313 70 973 786 955 331 494 360 403 784 182 209 141 840 230 296 412 210 222 524 916 636 270 447 677 549 162 658 505 349 749 868 423 13 336 834 635 856 940 898 870 376 312 602 407 422 637 844 141 352 13 502 202 699 756 270 934 773 920 109 613 716 445 598 650 690 115 279 496 516 52 273 374 264 140 898 240 752 314 605 469 992 187 911 309 773 187 672 19 125 235 661 352 865 720 677 278 142 412 293 301 882 844 982 967 839 4 431 16 901 858 15 588 800 714 797 677 59 403 720 10 113 144 443 802 803 767 172 47 9…
Output: 155

Example 3:

Input: 750 267 272 197 56 111 348 758 131 55 88 33 686 516 456 339 165 762 999 956 401 829 160 210 783 939 807 369 524 114 475 373 624 900 198 769 182 85 735 894 411 323 604 98 275 816 729 759 706 68 2 620 146 978 799 285 783 652 405 389 999 172 441 950 402 673 737 34 645 782 986 987 249 608 592 845 631 136 201 495 653 978 1000 596 941 854 992 873 45 33 85 841 869 334 449 550 868 513 740 64 700 768 919 692 412 742 116 697 892 946 821 687 711 507 719 876 777 364 409 184 891 762 232 320 304 589 381 901 104 937 757 853 351 670 619 153 495 533 342 680 260 605 49 865 593 887 235 511 160 415 72 370 841 280 141 21 141 102 370 362 225 555 75 935 777 306 796 984 860 854 912 302 901 550 499 892 27 162 686 14 997 371 562 48 620 470 579 76 967 282 155 324 243 842 349 993 2 814 379 867 65 137 919 195 505 352 …
Output: 544

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Above Threshold of Glowfen - EASY Coding Problem | CodeTikki