CT25359

Fletcher Counts the scrolls

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Fletcher the surveyor watches over the willow walks of Reedmarsh's stores of scrolls. A careful computation stands between order and chaos. Task: Read n integers and print the largest value. Input format: First line: n. Second line: n space-separated integers. Output format: Print the maximum value. Constraints: 1 <= n <= 242; -100 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 141 368362061 694566797 759606980 511862226 892795903 858519486 856374371 738089892 324486072 153809236 970057517 256358879 747688936 567552499 262691910 68844390 252339263 223147508 665637074 362401458 943505071 310548958 428090339 427991189 384186252 697318852 119169657 212511876 952143249 109331676 31077564 182639441 484161658 18867104 98829079 526145148 844510409 563492399 226874608 105481933 392151375 49131179 887383831 619767410 884250736 114087950 235569167 773110438 345381127 386523545 496222065 924348599 218464331 37649039 674089012 751410189 93024560 850042573 453156546 351282252 513958221 539948970 52323431 945719835 923631100 940426126 6604124 752110712 702142472 103790296 249525624 997176780 952887667 421617247 377297101 421046328 591542671 698349761 570930015 79441434 7709682…
Output: 997176780

Example 2:

Input: 131 590778892 105375756 602765143 514313635 485978313 783255742 365592448 451929447 805418155 402327590 423146980 213624246 35555400 296451598 466948713 199536566 962505197 901175894 265534682 425595264 33403182 494903953 298067427 27628050 312653637 839491416 144217774 320680605 215167539 256690126 435845226 255897941 386128229 608532473 284571431 850467208 187032373 10723641 518378676 834033487 390907106 297073593 744774375 353142644 297710134 133625135 168128589 189709686 90310140 961301253 922387988 781646873 889189228 953246186 759037219 776497349 476537070 46972939 154932072 463654183 793101444 822400188 863240575 32858931 866536819 200295545 821491887 246328454 146291759 150446517 516974748 762489237 776633384 533548345 825552970 574558681 625630533 559690530 605713976 453561298 923…
Output: 968039065

Example 3:

Input: 176 578875290 813836922 275632093 951038016 788691682 930425307 240148705 368637456 986337278 844965224 952750164 265678009 64134447 891104259 765333915 207566472 70606134 908921964 237579304 282736026 376858000 880695573 967519185 241348610 672952335 137893557 236617738 52111389 946619150 843311639 671016335 163173448 596617672 581034482 14183674 603745161 994367392 26208012 784413760 421690999 225604140 204506831 923285987 497284816 897148325 738236786 458295943 886321155 637662694 933259727 332427715 481879146 346853776 157704276 128328269 683362520 752377533 633026980 929185514 86392372 169422552 870861280 468872410 418225283 456114540 896239099 754747505 727288763 461913456 35745645 214247123 492847355 707455102 740151362 449778127 821840095 535628270 990956142 587163205 929461495 913…
Output: 994367392

Constraints:

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

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