CT28626

The Sum Beneath Screech Point

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Morning light hits the gull cliffs of Screech Point as Cobbler unrolls the day's manifest of parcels. The tally will decide the next shipment. 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 <= 993; 0 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 650 557924820 412782237 915223380 619783850 179751114 680275873 911167399 953358860 854339391 913724319 259037506 150415538 569517129 744524481 744326055 103196978 533392295 112165411 170583171 127565477 600482113 684457612 595275288 618922094 428556704 810475794 849182528 391289513 780816451 576585918 965789990 852095362 483127803 380936906 754733902 376406222 880450588 510196844 194674548 503124439 595507168 94523401 722863714 503298585 996010243 207231512 51546109 941327864 427853909 558188686 894695121 816435972 765902254 631227079 950149596 618296524 727289589 124522134 616060867 709297983 819540226 39232767 497622384 740823044 376783245 730189131 590505384 454202214 514022143 940583154 127359487 188705386 82931396 173975304 324878436 859506467 259955670 896826626 121309470 832316338 …
Output: 334492866662

Example 2:

Input: 185 993019460 539475594 193598267 803190279 272890770 375819826 459894901 913326376 443310081 699386302 359043015 179702681 511002617 124094688 727596879 713280564 769510625 807691433 939980528 40924879 936339156 457948993 857970716 624992622 569987408 331771586 579813975 228089431 833945798 842268036 805767429 768579128 377253842 205720983 928687036 282092084 441120296 608824383 743675728 955813432 374248064 460873969 456719931 183322893 158430993 366679992 232324618 841039409 932435348 582104570 137154632 512102027 516646178 232867471 914620008 246931347 359613350 4437478 231814695 941827309 860960887 431578773 549282369 415369590 243735972 243007113 76367925 340939657 437955059 93670452 396181045 321091183 424793448 248446969 961228287 185706332 300577737 199957747 672792607 788304191 9…
Output: 94693535623

Example 3:

Input: 615 254124180 330129845 776097314 422298844 898604283 676668866 854445695 92335609 634142244 744991954 700242174 670413940 677284355 132064697 210603765 370536997 193443528 899015958 647745273 395764458 779505875 917382222 772221402 590613972 690371912 611964879 357026277 503832747 948866327 242263714 236737940 336083750 701553734 597008460 698370584 37813107 194335466 966946278 634867100 65572401 354085799 177597289 119690224 465139497 484011489 572367510 772196143 603922032 846884260 859034843 522442954 194906696 983885489 326921541 177297721 144643941 229953602 123769367 957845309 168163505 801294686 744502978 449298300 942832558 861086649 306686578 164129887 346079213 525058544 587328303 682023847 783962347 974382659 396792011 493488734 216540944 759366727 712989309 994741306 799228753…
Output: 301327939821

Constraints:

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

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