CT535

Pia's Timeworn Ledger

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Deep in the archive halls of Scrollkeep, Pia studies rows of readings entries. One clean number will settle the guild's oldest argument. 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 <= 91; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 9 96703219 786886320 204533682 405218119 852599680 345155976 278139505 426688222 712353746
Output: 6

Example 2:

Input: 23 553634389 786035815 237417541 226270286 640090660 492162687 561293168 396345187 791040900 487409976 824607636 179250597 294126269 508278268 980324347 806250566 110693312 505968125 856035034 741736949 37001414 547278262 624893039
Output: 12

Example 3:

Input: 90 384204013 269094988 236192544 674582481 694694876 137743158 885370853 17345583 252173892 103901370 792364569 605487523 324336048 488904550 604911780 680207615 168348147 595018464 342717261 264528233 693135794 161696489 119006269 150471216 62113259 304903264 131747027 538877291 899927533 91170406 850979889 32637759 180807308 618639846 636373881 691227611 42045035 99339830 799073995 995464716 876595992 101770506 396638681 865930484 383054129 628119587 736985369 322181618 128816720 831746406 343583785 681674657 581624006 147797458 207430366 699065022 117552371 810670945 109601929 354533285 713485270 766043885 980805259 438362081 463721173 489012732 662979069 861553069 203518698 643902165 902104908 448981970 575820543 204005447 696934723 785558690 506604917 850085103 864658382 592713209 395559148 217243675 141172315 862461164 174504183 692679552 52128851 515697986 446955215 613735892
Output: 40

Constraints:

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

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