CT573

Indu's Brass Ledger

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

Caravans arrive at the snowberry thicket of Winterholt with crates of crates, and Indu the surveyor must account for every last one. Task: Read n integers and print their product. Input format: First line: n. Second line: n space-separated integers. Output format: Print the product of all n values. Constraints: 1 <= n <= 15; 0 <= a[i] <= 5; the product fits a signed 64-bit integer.

Example 1:

Input: 2 1 3
Output: 3

Example 2:

Input: 9 0 1 4 4 0 2 2 5 5
Output: 0

Example 3:

Input: 13 4 1 0 3 4 4 3 3 0 1 2 5 4
Output: 0

Constraints:

1 <= n <= 15; 0 <= a[i] <= 5; the product fits a signed 64-bit integer.

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