CT28380

The Lowest Reading of Silverfin

EasyL3 · Syntax SurferAcceptance: 0.0%XP: 20

Before the gates of the herring shoals of Silverfin close for winter, Mira must finish the barrels ledger - one figure at a time. Task: Read n integers and print the smallest value. Input format: First line: n. Second line: n space-separated integers. Output format: Print the minimum value. Constraints: 1 <= n <= 749; 0 <= a[i] <= 1000000; answers fit a signed 64-bit integer.

Example 1:

Input: 710 370826 78137 348436 123354 276487 816541 28865 200299 563179 307288 147520 779964 505029 173867 375577 182706 345492 605323 107292 946657 564126 768148 175827 2147 2862 172629 495215 4092 291811 943937 497393 180089 443858 611448 381082 641684 616004 67374 96271 747281 996843 416123 238449 460270 10130 727051 862260 14571 279563 363162 92624 69158 819138 290537 703650 966010 654498 203647 304335 672911 230732 416586 410001 674789 973847 473509 262181 749890 366020 518840 121245 853599 899773 994829 177237 551337 627942 913271 985195 801150 645861 340907 82127 468815 387106 949092 232740 160839 361339 910894 38560 120742 528298 648666 173977 104841 60748 52380 842081 312542 796820 496576 514300 463285 422387 37554 698207 408202 651751 8228 11561 978160 947363 420825 799963 339752 654004…
Output: 2147

Example 2:

Input: 526 822854 740167 770417 840379 636086 380976 903766 687847 700580 559854 229883 278619 375374 365681 264417 670669 39475 609932 741279 876405 352621 679114 760191 559285 180019 227243 794944 890852 19036 445897 434604 584208 173688 650776 799092 900924 793335 634184 879146 690158 150155 711496 929771 264915 67979 334183 234529 75026 653612 12158 604116 829880 72406 474867 762726 45258 199400 170682 460550 248085 946492 985886 644719 105672 70539 988551 226635 258646 368029 61181 558577 140751 560906 720507 642953 794419 423304 316317 130371 35198 87662 216515 112570 253557 585246 447410 137551 42891 575991 570087 797570 30713 787919 156767 693021 726845 402726 870828 524894 68426 595868 326886 559130 660753 293822 173891 567078 301200 607487 673431 963927 161978 66886 178191 743292 20604 …
Output: 1370

Example 3:

Input: 12 787203 957712 376751 181517 894067 656287 114902 659646 919880 71373 477863 66513
Output: 66513

Constraints:

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

Loading...
Test Cases:No test cases
No test cases available.
The Lowest Reading of Silverfin - EASY Coding Problem | CodeTikki