結果
| 問題 | No.1237 EXP Multiple! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-01 13:21:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 31,644 KB |
| 最終ジャッジ日時 | 2024-07-07 01:16:43 |
| 合計ジャッジ時間 | 4,034 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 18 |
ソースコード
#yuki1237 import math 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) res=1 for i in l: res*=pow(i,math.factorial(i)) if res>=mod: print(mod) exit() print(mod%res)