CT648

The Radiant readings of Dorian

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Before the gates of the salt flats of Palemere close for winter, Dorian must finish the readings 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 <= 83; -1000000 <= a[i] <= 1000; answers fit a signed 64-bit integer.

Example 1:

Input: 24 -146305 -138496 -225458 -659348 -364862 -540333 -713114 -585875 -424546 -858789 -701920 -61504 -168508 -596706 -925205 -405095 -606884 -870916 -96332 -325656 -726291 -704352 -50465 -403058
Output: -925205

Example 2:

Input: 42 -712721 -747185 -360253 -370366 -19609 -60586 -17435 -863529 -749475 -944128 -667016 -403777 -658278 -344318 -269012 -715742 -460183 -336387 -709174 -985162 -196750 -509998 -906272 -76819 -339556 -941370 -386775 -559231 -908159 -37767 -655610 -491633 -255881 -750491 -119195 -417038 -282389 -53325 -989864 -583799 -167202 -489596
Output: -989864

Example 3:

Input: 75 -190134 -559912 -327146 -615408 -921332 -617404 -279370 -819135 -420676 -90479 -558647 -709224 -905759 -714933 -501685 -127983 -769792 -223892 -273097 -832402 -218075 -508232 -230326 -812323 -394231 -56502 -833047 -293404 -946967 -861105 -156281 -278492 -378789 -757731 -365445 -928617 -762125 -979849 -769640 -761460 -248670 -202358 -917581 -598385 -984296 -38680 -744329 -259562 -423751 -949247 -273922 -461089 -854968 -532968 -951656 -442185 -328582 -957406 -738224 -568872 -995101 -380349 -191377 -703134 -668511 -271343 -690260 -464538 -736462 -322523 -587665 -703574 -183307 -180277 -702572
Output: -995101

Constraints:

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

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