CT22077

Surveyor's Ember Ledger

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the eel marshes of Slitherwick, Surveyor studies rows of barrels entries. One clean number will settle the guild's oldest argument. Task: Read n integers and print their total sum. Input format: First line: n. Second line: n space-separated integers. Output format: Print the sum of all n values. Constraints: 1 <= n <= 533; -100 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 209 751238 142981 342505 742642 857851 671093 269577 590547 687634 402180 286038 295852 323915 10208 312306 308608 312805 710399 287169 558935 269941 429719 647686 559132 590740 354593 504546 752143 298000 755426 595755 794391 174293 469434 458004 861141 256449 282840 63806 231555 261562 366016 584250 805045 390082 123002 428748 662297 824428 508603 96837 816938 442335 647953 644829 949304 24441 40043 371018 306075 989812 264234 978520 204597 284119 275252 581321 127381 92279 183110 207075 573349 704752 656365 243131 824185 220397 2360 745340 497425 278441 348 177854 661398 893249 685070 139694 309908 112386 250568 505155 956643 334899 293280 647329 894148 358603 841711 380273 802974 305994 671707 897783 817253 596098 900421 574082 824361 617074 259420 439913 696128 885526 684905 664792 17…
Output: 100531610

Example 2:

Input: 105 273090 245184 170006 828991 769765 788718 169608 777953 545286 128880 27369 132722 708583 924518 774447 445763 309384 178059 771028 122372 733030 587974 851684 91178 2513 930632 542706 403005 292300 517301 343681 237678 438295 917344 107957 328049 495962 830250 287558 664545 750859 835114 422132 579881 438426 678415 191210 307417 447657 731670 39666 293589 627641 737297 83204 459373 597490 188874 913606 550240 860188 633230 899569 960875 704507 793555 626534 201224 254518 451600 436417 933196 13255 192585 750537 866081 430152 501897 961163 481655 676082 428419 510474 96665 18811 415509 537044 983511 103032 91886 25789 487560 145007 817029 642311 271168 636613 569343 594585 945578 992393 40452 243676 74652 15157
Output: 50884613

Example 3:

Input: 444 342631 320842 560717 662127 661176 140360 611187 60499 311682 38322 985120 209205 625891 547208 351388 58057 779123 735942 823455 403443 325769 744134 746850 378046 38860 42764 801637 115955 143645 152396 190257 928079 580043 171090 761418 824788 340864 786367 164778 538161 735164 512720 728160 908043 157062 917693 811735 712492 651727 726283 972782 349432 89659 408432 266831 26399 559855 753943 701638 541872 292434 437850 670662 682016 678448 915582 720532 449543 846169 389755 13748 202521 227373 650554 265182 738856 107085 417608 895032 609207 607403 912551 813685 538138 950139 638820 991478 612357 699801 670827 561799 476090 39718 161088 81556 445825 715620 671722 516525 352183 569249 423936 145770 235406 441501 118192 286909 375791 776670 329352 272013 889203 120830 159190 424944 1…
Output: 216893715

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
Surveyor's Ember Ledger - EASY Coding Problem | CodeTikki