提出 #13871484


ソースコード 拡げる

from operator import mul
from functools import reduce
N, *A = map(int, open(0).read().split())
x = reduce(mul, A)
if x > 10 ** 18:
  x = -1
print(x)

提出情報

提出日時
問題 B - Multiplication 2
ユーザ maspy
言語 Python (3.8.2)
得点 0
コード長 154 Byte
結果 TLE
実行時間 2206 ms
メモリ 22044 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 0 / 200
結果
AC × 3
AC × 18
TLE × 6
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
hand_01.txt AC 21 ms 9332 KiB
hand_02.txt AC 22 ms 9624 KiB
max_01.txt TLE 2206 ms 22044 KiB
max_02.txt AC 35 ms 11000 KiB
random_01.txt TLE 2206 ms 16828 KiB
random_02.txt TLE 2206 ms 15736 KiB
random_03.txt TLE 2206 ms 16496 KiB
sample_01.txt AC 21 ms 9336 KiB
sample_02.txt AC 21 ms 9496 KiB
sample_03.txt AC 22 ms 9292 KiB
small11_02.txt AC 21 ms 9328 KiB
small11_03.txt AC 21 ms 9556 KiB
small11_04.txt AC 22 ms 9432 KiB
small12_02.txt AC 21 ms 9496 KiB
small12_03.txt AC 22 ms 9560 KiB
small12_04.txt AC 24 ms 9380 KiB
small21_01.txt AC 38 ms 11236 KiB
small21_02.txt AC 38 ms 10996 KiB
small21_03.txt AC 38 ms 11128 KiB
small22_01.txt AC 37 ms 10992 KiB
small22_02.txt AC 36 ms 11164 KiB
small22_03.txt AC 43 ms 11012 KiB
zero_01.txt TLE 2206 ms 21880 KiB
zero_02.txt TLE 2206 ms 21872 KiB