CT23608

Lata and the Peak

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Deep in the honeycomb cliffs of Beeswick, Lata studies rows of barrels 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 <= 895; 0 <= a[i] <= 1000; answers fit a signed 64-bit integer.

Example 1:

Input: 798 125 883 328 102 93 415 755 419 362 202 694 956 113 880 797 737 587 393 386 831 33 79 877 975 52 876 693 43 769 438 908 59 411 427 684 274 572 160 568 559 940 604 744 420 625 17 563 4 290 850 541 906 7 241 799 478 645 112 553 144 458 220 229 942 985 543 28 19 794 586 80 30 889 154 857 392 707 462 327 942 772 500 939 282 838 966 690 932 325 696 240 543 200 331 200 681 823 572 735 183 745 35 688 130 724 161 546 123 138 557 502 336 868 211 794 80 908 718 180 186 629 936 161 882 665 316 628 269 597 942 689 662 237 985 764 155 714 194 281 532 622 297 159 689 764 68 267 104 484 441 142 674 89 393 871 806 585 11 614 890 766 650 944 914 141 637 242 411 343 298 327 284 456 83 631 584 619 996 531 917 99 213 44 274 639 690 719 684 818 909 55 537 697 455 971 141 691 73 837 238 755 498 257 342 588 4…
Output: 998

Example 2:

Input: 871 631 13 852 715 354 652 558 906 201 996 618 69 158 959 588 42 528 804 821 699 896 600 869 253 779 354 798 856 305 837 708 44 752 284 12 996 422 212 975 40 112 997 349 151 541 411 270 104 590 179 698 36 162 413 401 387 674 429 92 257 374 967 404 918 932 517 910 513 847 263 32 556 17 774 47 587 457 327 742 103 686 485 890 273 715 524 433 236 666 99 495 544 219 484 953 148 524 879 192 1000 6 556 590 42 219 118 283 640 691 886 345 150 968 231 664 95 506 704 338 619 462 159 192 171 234 631 1000 492 4 297 576 367 810 90 986 115 896 595 284 282 300 522 957 363 940 385 724 130 1 8 104 162 580 730 836 881 663 698 540 399 72 30 35 217 655 21 440 901 401 231 373 955 34 261 983 873 917 649 107 481 795 469 823 518 242 956 417 226 36 201 919 808 581 329 412 417 267 511 147 465 379 231 389 411 979 234…
Output: 1000

Example 3:

Input: 420 307 476 515 219 293 974 544 38 47 576 827 673 189 220 437 888 73 929 466 233 104 89 428 249 731 636 840 585 357 335 466 404 709 856 35 996 250 658 921 511 151 814 171 476 125 718 106 524 261 786 422 316 703 674 252 333 17 109 933 841 28 197 87 30 120 433 179 151 773 939 612 483 7 421 890 14 893 435 122 371 94 425 258 167 130 766 616 300 669 784 832 736 413 394 409 521 714 51 628 270 107 375 967 77 201 829 316 6 919 366 897 912 562 84 272 700 62 57 18 438 146 550 657 527 443 896 293 971 616 258 749 590 95 477 555 671 220 212 699 804 816 516 785 30 675 865 213 302 868 11 371 313 78 672 93 936 617 649 371 449 946 929 186 981 964 649 84 110 952 688 735 168 978 932 620 487 138 230 842 96 389 304 23 924 60 596 359 945 904 764 214 193 22 105 766 255 473 167 290 932 28 187 7 497 588 386 936 46…
Output: 997

Constraints:

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

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