CT24636

The Peak Beneath Keelwind

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

The assayer Librarian has been asked to recover the missing manifest. On the desk lies a long table of lanterns readings. 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 <= 571; -100 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 47 417229140 930616714 276251303 472335442 707068815 120454726 586802455 843263065 971859245 807711399 573078058 726557112 409463533 253877457 619439796 561108113 713029512 733420089 35910845 883591784 728195313 877951592 4995040 335268686 615176943 650082738 921025036 709201888 741539041 134018404 557018791 583776416 305193195 146839719 405836967 187620293 249578171 355173505 357783728 859709793 945784907 897104204 254281256 681786205 267222319 590189825 399267502
Output: 971859245

Example 2:

Input: 461 916414197 677400970 409440795 453793125 413171319 446394825 877521742 19536777 425928257 717882150 791875753 298335395 521839663 25772203 638933303 330439367 437771808 649095379 285513848 364954635 895433481 233708229 664852242 983640089 48882591 562190258 60559887 983874895 45415172 360301288 455647963 516243785 321165765 403838035 936413077 813569705 837497374 355001281 131376544 676332441 603397518 42660593 786146632 352250986 381105913 311135110 888409946 204405756 867042110 792325722 895971806 250832806 149499735 633631020 30639895 844123315 73726124 539157350 2715067 601670104 817258789 26341365 8467466 438771785 842428862 921985996 656797762 648314101 760707822 402045368 893697583 677614330 490130261 601619155 258172148 582993228 45094748 755926786 865131359 273524095 947601202 …
Output: 995993613

Example 3:

Input: 302 710821178 183232036 690225394 58574840 4367562 15492791 884217392 315353345 302777418 22900260 466448413 974282660 470299755 571201711 309054002 805460233 80892448 504635339 723910979 82072232 923720887 375411484 518431724 393220015 761638641 757273487 757718130 668955847 226699269 486730075 45124948 31625566 262780961 123479141 716836835 740287582 745101488 953168092 402530195 514460678 412854830 687245487 765617623 375384023 641821399 138227123 355414521 465171918 415948170 57412693 885601968 269511956 232151570 165905225 985222288 383185097 725669935 791471732 375153440 852178693 507058727 676161214 868733338 236228344 916685451 511931704 252008387 137669554 646663540 287220519 459355330 38776773 132405978 419473374 577091456 859577493 841328934 808879887 817217622 763839261 4473549…
Output: 998144948

Constraints:

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

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