CT22659

The ingots at Will-o-Wisp

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the fen lights of Will-o-Wisp, Corwin studies rows of ingots entries. One clean number will settle the guild's oldest argument. 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 <= 411; -1000000 <= a[i] <= 1000000000; answers fit a signed 64-bit integer.

Example 1:

Input: 197 218484518 434262232 152128328 158305671 903703902 77421735 497585320 145876334 595779006 242986789 909148471 997542853 267850409 703253125 779659255 818933542 141971517 20002622 374601537 750556670 59893107 822413222 793571860 650880587 643198286 633893266 394683399 195300079 644000304 104374177 869512386 539159839 438828153 366567841 564575732 694762304 976364420 666347982 658413182 278282937 657902837 484440361 168680447 461760880 647309068 562528312 875547875 673966892 893292199 672757883 531196149 226181303 533491014 447297396 305773642 309533417 483973716 379028332 500211471 321798026 879073106 288387228 142331593 892490707 381456783 889298022 287056317 509192169 65586719 194430159 609772044 563721521 294536432 560733917 693615288 675745329 1966774 626478343 879276253 769661676 712415589 860359640 32494692 25529913 633312402 783778519 538536707 594869926 513719327 246766089 667414568 440391871 669248265 164770930 575074119 191679172 553641748 782235071 411215924 946353780 972859413 117526462 314438664 117447451 404680912 993745659 790663486 720841549 937302542 359260572 411174992 771139077 374346631 509911426 329499251 579582387 315937112 150028615 481320843 803004751 205768183 222636250 528251134 143827079 62436047 335308116 88081648 300904862 356453892 330862661 286930487 908304827 932414979 717980100 613862646 755315471 302678991 623034826 210201594 914199896 817393246 322196801 138640488 837158408 589051429 465309689 342983093 602751637 647522442 720955956 805753478 718312903 796082918 815610000 468484509 377942132 530913294 795935772 902320037 297480566 648676048 26973006 736156367 936512476 120532923 208248113 875926705 400284042 569176025 726619053 24020350 471048006 463834388 489952092 50430577 698302367 337490341 107662286 617169605 658285255 690153461 640742608 937378759 203598288 352462563 425765305 23536196 208472975 156403616 816975107 663567906 979467199 193874050 793576643 108651613 557592351 233241853
Output: 997542853

Example 2:

Input: 206 646863232 222097113 703827772 683931809 711753644 737884012 879837697 679759697 573187075 640558025 560555249 510456927 84444915 618028361 666280939 929847504 521403546 450200670 485859958 303976542 971508284 736017371 405759470 528819321 301014744 290401743 384421323 459869671 559976757 220325309 562800357 357787124 315463868 401008760 666812226 570232788 380488198 78315710 82893748 958924198 866232403 556769591 827879350 627899307 393642627 444727640 107783810 381863833 231407285 134076298 959517591 59800879 510295223 840899054 377253552 527121252 141205206 787231289 409330618 405893318 563534856 43774687 531402193 819777261 862598556 505481713 470184672 778707671 525375317 366822358 373796046 282183366 627095592 414733128 725581905 411850767 471664502 729022627 10443325 891897878 131572283 488974492 37592115 95320026 140922728 969797124 797817220 571268751 813690041 326491292 946860130 355393628 193683745 445062133 902348990 82765673 888335179 700778706 74080074 155302282 7451419 170387800 576607512 946361467 764722036 514530840 477755188 131832577 26997341 460186790 270473414 293026034 341915252 745081422 391604290 605902803 873648916 348599925 105690942 561218104 917463416 571627917 324606445 605094903 115539773 373570845 201175969 779204947 930273683 232956524 856661175 447069949 986026405 362311549 366750181 539158135 148073716 539498641 66670516 679537795 139892282 291516191 921121273 416777119 884552766 233156563 674822706 954051955 773800481 69964219 987478390 262585101 55504923 138024784 95431736 199102259 398422482 298545836 917641414 60604764 637584403 371437984 836718007 406594110 996046385 411091305 52058399 250128807 562655796 399295888 770179259 769335063 368123419 291356564 380594914 67889996 538113975 973653666 693192805 230036659 267263627 695058745 587302574 662938542 894914842 19452282 273437200 596873779 921890311 923344947 107644034 992299501 327521644 456696254 326611255 675669694 817528487 396376776 938167911 417812954 952478064 368314459 103894516 944877692 460434239 830306575
Output: 996046385

Example 3:

Input: 190 550155768 999580555 797785019 920125141 397764453 8008062 362723060 350356451 393793466 314407213 999231077 406324315 767499397 453682152 874714460 825016906 676674268 742865326 762448894 523770298 614139774 266742782 61504462 973862126 692549216 414653521 151864446 542259721 157779911 387146679 990830496 477662860 77870509 689846074 478143862 298272679 872025641 169970160 159430454 950820299 194011114 316391688 346529760 664586910 49240 578506757 791311005 279198343 571263877 16486559 318496575 245010894 274543056 464405202 538100903 611798187 584970317 940372018 580069750 267741587 874282928 116716601 334915479 977497938 131205433 767987762 980066200 525442207 457197432 997543423 873935540 223171718 351508264 78227202 348308344 290260374 641483103 100809723 76106532 951834900 522055662 200238806 363243829 234982103 680986864 924212707 437818242 951395547 878623627 591143830 907419824 827844235 939717417 938309245 855792700 732409868 80916726 789935299 729925244 966973343 620215660 401433674 916585063 940001776 65221620 648809830 10866404 315318766 946887875 680183002 271344912 178236872 574960659 105294032 611447129 743873195 929113966 375258877 736655791 280554607 554091761 416352689 978917166 134317490 864016480 338579923 905992657 258704821 464650131 648435302 615960176 892489896 216098720 327756395 504737635 98007601 45432052 947192391 860556319 144097355 157147378 736710301 988019822 109238094 357608189 698523834 411135369 17288680 35730727 548565625 575174055 602612683 845882758 851141635 392844179 162987422 261595610 141962471 40296340 410014959 639285561 438997647 450021442 487539854 287587497 941618295 980656804 591819356 771816117 858633483 915076680 7953445 370312456 438172901 565244294 303553969 178993875 416150808 308296644 310580925 320370927 641766854 125718019 596474618 949599247 164507720 704263353 479740913 409672972 115815638
Output: 999580555

Constraints:

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

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