結果
| 問題 |
No.1237 EXP Multiple!
|
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2020-09-25 23:39:12 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 33,272 KB |
| 最終ジャッジ日時 | 2024-06-28 08:20:02 |
| 合計ジャッジ時間 | 4,331 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 TLE * 1 -- * 13 |
ソースコード
import math
N=input()
A=list(map(int,input().split()))
if max(A)>3:
print(10**9+7)
elif min(A)==0:
print(-1)
else:
ans=1
for i in A:
ans*=pow(i,math.factorial(i))
print((10**9+7)%ans)
#そういうことか
harurun