CT27897

Hestia's coins Even Count

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

It is audit day at the coral atoll of Pearldeep. Hestia spreads the coins records across the table and picks up a sharp pencil. 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 <= 701; 0 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 327 255583 477882 374131 115924 117614 439328 39769 932344 832898 164067 400265 758733 759647 357041 239252 452952 895286 136727 674129 162946 617907 934023 982529 706702 437578 817186 115719 27563 993214 120359 833534 928096 826935 583714 381045 46325 316736 59239 39168 476417 603919 389208 998522 555480 32947 229498 563278 636235 818852 336041 698376 512603 143207 49902 140484 193940 250436 711840 965653 582929 178788 223991 659119 26292 153150 451423 289290 344669 714735 774289 369070 328697 213453 862245 745009 905430 435700 87110 79145 478859 343652 276651 793137 361116 470149 231473 690694 910861 120814 51795 98332 245825 855487 408819 568082 548120 146939 274003 476449 616924 972928 374104 978534 47028 952011 100372 469129 195917 79282 298289 853318 439728 262443 613284 140720 50337…
Output: 173

Example 2:

Input: 518 89083 990202 275803 725282 685653 552818 582157 809760 702207 249635 267411 889841 621088 661215 265086 667316 124025 822436 138817 548238 835243 441745 766267 822356 313253 584221 245156 248331 43194 82860 696265 63708 835828 151610 280139 989166 385018 771536 70350 259683 655467 814510 705251 79843 485702 39207 69730 329069 395964 141402 827344 596284 74791 41488 637381 860672 152549 886422 682229 202774 367786 132889 232197 100371 650297 974291 489799 650328 753263 419980 476452 477846 401041 591722 955872 448402 506294 605887 666912 506398 540224 149176 912473 989702 213639 579674 614041 516805 243422 440242 299718 106416 677025 770838 871398 124475 934643 272420 508998 345163 286124 586796 632903 36262 322417 472305 646495 607886 112953 461927 588183 942744 25865 903425 559928 964…
Output: 264

Example 3:

Input: 557 231095 60211 685161 386869 155750 227434 832453 458462 221946 168786 13915 10019 369406 36585 301917 63280 712893 94500 99102 906295 129179 765484 711853 658315 226103 52276 567332 785776 673822 470950 592005 846698 467575 447292 666845 965282 823307 941514 641824 865115 945818 503435 899946 817938 102883 113398 398805 869127 802464 23645 606053 181127 767880 746074 620623 399300 357064 300684 494588 511191 141472 266313 823621 499350 429257 596529 299801 254887 783026 783018 670442 795226 904785 405203 92476 687418 447747 927993 755961 694272 106762 603291 811526 156148 836633 874157 486551 605898 809800 700008 174788 82692 123673 848890 397898 465777 818521 753943 773180 274693 681957 14491 501437 963431 253727 613966 606785 559294 337856 773353 594169 333162 44019 157140 558414 4702…
Output: 287

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Hestia's coins Even Count - EASY Coding Problem | CodeTikki