結果

問題 No.1237 EXP Multiple!
ユーザー pluto77pluto77
提出日時 2020-10-01 13:52:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 218 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 30,756 KB
最終ジャッジ日時 2023-09-21 06:51:29
合計ジャッジ時間 2,472 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,828 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 48 ms
12,056 KB
testcase_06 AC 53 ms
12,124 KB
testcase_07 AC 49 ms
12,172 KB
testcase_08 AC 92 ms
12,172 KB
testcase_09 AC 48 ms
12,012 KB
testcase_10 AC 48 ms
11,980 KB
testcase_11 AC 54 ms
12,080 KB
testcase_12 RE -
testcase_13 AC 85 ms
12,056 KB
testcase_14 AC 89 ms
12,176 KB
testcase_15 AC 88 ms
11,988 KB
testcase_16 AC 89 ms
12,192 KB
testcase_17 AC 85 ms
12,192 KB
testcase_18 AC 93 ms
12,200 KB
testcase_19 AC 50 ms
12,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1237
mod=10**9+7
n=int(input())
l=list(map(int,input().split()))
if 0 in l:
 print(-1)
 exit()
if max(l)>3:
 print(mod)
s=[0,1,4,729]
res=1
for i in l:
 res*=s[i]
 if res>mod:
  print(mod)
  exit()
print(mod%res)
0