CT1309

The crates at Driftwood

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Sarla found an old ledger of crates in the greenhouse attic at the quays of Driftwood. The margin notes pose a precise question. 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 <= 34; 0 <= a[i] <= 10; answers fit a signed 64-bit integer.

Example 1:

Input: 5 3 6 10 6 5
Output: 3

Example 2:

Input: 26 4 5 2 5 5 8 6 6 5 2 4 3 9 7 7 1 3 2 8 0 9 6 10 10 7 5
Output: 0

Example 3:

Input: 19 9 9 4 0 3 5 10 3 9 8 7 9 8 8 10 6 5 10 2
Output: 0

Constraints:

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

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