結果
問題 |
No.1237 EXP Multiple!
|
ユーザー |
![]() |
提出日時 | 2020-09-26 06:00:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 31,756 KB |
最終ジャッジ日時 | 2024-06-28 15:35:46 |
合計ジャッジ時間 | 3,737 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | TLE * 1 -- * 18 |
ソースコード
import math n=int(input()) a=list(map(int,input().split())) if 0 in a: print(-1) exit() MOD=10**9+7 fra=[] for j in a: fra.append(math.factorial(j)) ans=1 for i in range(n): ans*=(a[i]**fra[i]) print(MOD%ans)