CT25283

Petra's Ledger of stamps

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The council of the copper works of Verdigris pays by the answer, and Petra intends to earn it. First: the full register of stamps. Task: Read n integers and print how many are even. Input format: First line: n. Second line: n space-separated integers. Output format: Print the count of even values. Constraints: 1 <= n <= 275; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 171 155168772 201583881 277790574 474122065 643881421 481366968 15568812 31475054 256429693 558725341 97771816 919242505 361829555 97608798 431255023 989079108 96861206 110877475 276236874 644701647 893286861 725535075 697300501 952704093 685012848 189861075 271417697 510848300 693966900 383492150 5428954 955900693 939835499 137057291 181354263 120457934 729455308 825707114 106000997 166082102 298326157 881222450 964183503 343598435 247588980 599944844 870527566 852468252 821836148 12092428 837771065 324110136 579833352 637102187 188256145 395439780 537067750 562059869 360969092 682310160 249337423 518396669 484624740 785575690 305727234 458771849 543119318 380894996 568090388 282082382 605902849 443843943 777574185 358248773 513373600 263479191 638178335 364261663 552136930 215161868 269334851 556278934 490762940 991632869 596583772 925553140 528779627 877908625 283352767 943763634 151855377 697229215 892517719 997212309 785738729 430293945 874570365 11594714 334918687 313580366 192853135 652276203 56703472 127147645 671222089 32251888 249462079 724776410 426562752 737485422 769471357 705096944 121320438 585398630 414831452 260921914 126216501 662346832 459206583 718757428 946394038 310229743 680986650 63169570 63057803 713729043 889241540 43910527 255119161 960594463 450084099 18509884 945870265 422275747 388494604 298577748 339913785 370271743 809407707 339869622 727283407 50897342 31725836 141373342 563597964 363163117 782459243 554101440 691904576 517424218 209576139 577307554 90202707 233653173 948795590 93097495 705111413 710684975 884390642 691763923 592533106 901146071 24172431 519943934 299996715 18371917 509001528 993372089 735048494 714986467 92070630
Output: 84

Example 2:

Input: 17 947635717 702873975 453993745 563433542 975062037 603770406 895870587 638136290 210864828 214175452 304660941 862969369 75904449 312497385 943781089 420092046 53885426
Output: 7

Example 3:

Input: 197 610073330 823046163 962395987 525085233 513702090 424364428 74264878 497145625 981137647 325677908 682021830 337419832 259522248 932825627 344734926 568178851 530145831 455673462 822557893 841389462 596009834 70960594 191698345 823887128 487487493 64699801 28612812 349280941 457134590 704785440 204171908 72234753 751430263 866374119 115842902 845463864 443429852 633620194 702307818 319761899 744723992 523839694 746839706 517094195 408294689 13247540 615586363 572591973 284469758 106715123 423774465 641189921 870892474 437779533 899349429 935520764 297027784 530964239 636761879 286757943 5660148 406089864 1832586 815488188 382206268 161856331 11586735 385428552 382942138 487669371 807307778 955988556 859155974 391161094 934514311 637318336 254305042 488132985 394406958 792856981 8057408 633449821 822634529 592046034 199714688 463942812 174229474 523341583 598256043 673597432 422145074 981380157 938359035 298651836 195794680 665177358 194457897 285460321 194649085 385945195 632925247 832028667 269602154 492613830 722985900 447141873 609677575 651540394 355448021 331278064 370990047 698180071 212829566 337522907 883172798 690204451 618262796 843305637 646102995 910631990 347424065 534030026 844512095 821180326 892054563 11754776 51066441 219189517 592199789 972068301 797679033 298598957 238112032 684747294 872273757 136430065 676899762 834636859 701051739 66384132 744614186 762613970 142174389 76773063 913520037 125855249 436704803 193721957 996016558 790987326 948538349 937695233 491763878 146408737 465649064 556774926 81544653 21468661 49999769 136993996 402732142 59469269 191687439 490680827 758825708 313660000 838136775 66060579 191134136 800353644 424305477 875438877 853374263 830709232 85728892 119404383 259368664 932233387 39140503 184629611 403372632 89351064 138912886 997233778 550381134 390856678 592857991 421567476 84254047 894482898 926474414 626589845 438857919 162092629 332334079 843631674 135966683
Output: 97

Constraints:

1 <= n <= 275; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Loading...
Test Cases:No test cases
No test cases available.
Petra's Ledger of stamps - EASY Coding Problem | CodeTikki