結果
問題 | No.1237 EXP Multiple! |
ユーザー |
|
提出日時 | 2020-09-30 00:47:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 252 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 32,552 KB |
最終ジャッジ日時 | 2024-07-04 20:05:59 |
合計ジャッジ時間 | 4,724 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 RE * 1 TLE * 1 -- * 13 |
ソースコード
N = int(input())A = list(map(int,input().split()))MOD = 10**9+7ans = 1if min(A) < 0:print(-1)exit()elif max(A) > 3:print(MOD)exit()for i in range(N):ak = 1for j in range(1,A[i]+1):ak *= jans *= (A[i]**ak)print(MOD%ans)