CT1216

Weaver's Tempest Ledger

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

In the crane marshes of Stillwater, Weaver the reckoner keeps careful count of the barrels. balance the workshop's books, every figure matters. 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; 1 <= a[i] <= 9; the product fits a signed 64-bit integer.

Example 1:

Input: 3 1 9 8
Output: 72

Example 2:

Input: 1 1
Output: 1

Example 3:

Input: 6 7 9 4 4 7 4
Output: 28224

Constraints:

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

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