結果
| 問題 | No.1237 EXP Multiple! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-30 00:47:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 36,008 KB |
| 最終ジャッジ日時 | 2026-03-26 03:04:42 |
| 合計ジャッジ時間 | 12,334 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 RE * 4 TLE * 2 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
MOD = 10**9+7
ans = 1
if min(A) < 0:
print(-1)
exit()
elif max(A) > 3:
print(MOD)
exit()
for i in range(N):
ak = 1
for j in range(1,A[i]+1):
ak *= j
ans *= (A[i]**ak)
print(MOD%ans)