CT24250

Farmer and the Golden stamps

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Every season at the alabaster quarry of Whitestone, someone must audit the season's records. This year the task falls to Farmer, armed only with the stamps register. 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 <= 784; -1000000 <= a[i],t <= 1000000000.

Example 1:

Input: 86 296515635 240996100 52813951 624595161 42458252 364446359 907485245 703558166 205013324 965327914 62777471 297512844 158724641 716637828 541634359 894991759 711458948 145792698 242778791 19900714 817090917 298988677 449935034 258345524 173553234 554620632 873456144 367996700 148765987 19314077 814752580 450503047 185634780 773210483 839133946 852312533 259599784 479541240 892529433 278857500 629644478 373869996 848139291 917335293 110292178 738035869 381291721 581187384 518432749 29734596 821976389 208981842 836434796 956426680 876389487 926194117 994295788 214581429 761771082 495746375 262483624 287518047 408399048 285310519 904444568 10897770 82379690 117124291 930533522 605044223 219434845 963206306 226204036 984182051 402597484 595634907 846069793 430291836 993323900 981993218 90358…
Output: 56

Example 2:

Input: 270 276431791 890891590 363817485 607574601 434904660 658293638 226747542 429827694 288572348 297437179 5088381 883642378 810285833 203859136 289399908 288141617 767803916 973758023 507841781 508179169 648939520 697503633 555048480 379464059 354629162 537275769 713651133 978714271 3134997 6196698 913699456 905531449 52290938 352566018 106292588 490189728 491295534 269643151 959271814 750954349 554981774 605975405 238265282 678773053 375665703 767637626 246753117 561861889 849289906 697348593 706763289 721308495 977366323 540879741 558639611 441234348 888952072 729528772 700348971 609860254 267265691 123055077 722075571 915047344 178715168 793297640 380445417 909613826 442471245 358967195 173945059 263412750 340932570 422676733 437101860 672201465 506450506 470472189 64071892 306490754 3696…
Output: 195

Example 3:

Input: 80 155693354 785259017 622475248 322213461 976303937 492530835 600295100 471926651 416586359 819496930 498165017 619147011 197832212 187969885 654194003 310901003 210185536 717183015 747610439 262157950 503381571 511268096 688927301 888774133 729868745 48877066 284767865 550918419 417176517 678366455 985672222 77817926 748950859 864257290 130181850 93635108 491169119 506277950 135336834 850215295 372209455 138515721 421312555 862749428 944820860 840511333 960172235 702613162 698176615 439427477 6925262 267780340 532254200 162512869 376645522 561600402 797508984 722155790 276946490 434142217 242910462 949262104 599881853 698742330 598216802 330509191 956379874 691508172 575963718 256634383 668369294 703484892 944867790 242241409 537296106 655382628 628227251 346959614 39419727 854463595 635…
Output: 72

Constraints:

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

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