Submission #13783461


Source Code Expand

Copy
N = int(input())
A = list(map(int, input().split()))
ans = 1
for a in A:
    ans *= a

if ans > (10 ** 18):
    print(-1)
else:
    print(ans)

Submission Info

Submission Time
Task B - Multiplication 2
User sakano26
Language Python (3.8.2)
Score 0
Code Size 153 Byte
Status
Exec Time 2206 ms
Memory 21788 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
× 3
× 18
× 6
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, max_01.txt, max_02.txt, random_01.txt, random_02.txt, random_03.txt, sample_01.txt, sample_02.txt, sample_03.txt, small11_02.txt, small11_03.txt, small11_04.txt, small12_02.txt, small12_03.txt, small12_04.txt, small21_01.txt, small21_02.txt, small21_03.txt, small22_01.txt, small22_02.txt, small22_03.txt, zero_01.txt, zero_02.txt
Case Name Status Exec Time Memory
hand_01.txt 21 ms 8988 KB
hand_02.txt 21 ms 8864 KB
max_01.txt 2206 ms 21788 KB
max_02.txt 37 ms 10392 KB
random_01.txt 2206 ms 16612 KB
random_02.txt 2206 ms 15264 KB
random_03.txt 2206 ms 16088 KB
sample_01.txt 18 ms 8856 KB
sample_02.txt 18 ms 9100 KB
sample_03.txt 17 ms 8864 KB
small11_02.txt 19 ms 8872 KB
small11_03.txt 17 ms 8872 KB
small11_04.txt 19 ms 9056 KB
small12_02.txt 15 ms 8868 KB
small12_03.txt 22 ms 9024 KB
small12_04.txt 17 ms 9156 KB
small21_01.txt 41 ms 10400 KB
small21_02.txt 40 ms 10504 KB
small21_03.txt 37 ms 10712 KB
small22_01.txt 39 ms 10404 KB
small22_02.txt 41 ms 10576 KB
small22_03.txt 38 ms 10400 KB
zero_01.txt 2206 ms 21372 KB
zero_02.txt 2206 ms 21572 KB