結果
| 問題 | No.1237 EXP Multiple! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-25 21:34:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 313,440 KB |
| 最終ジャッジ日時 | 2026-03-16 17:31:58 |
| 合計ジャッジ時間 | 36,061 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 TLE * 7 |
ソースコード
import math n = int(input()) a = list(map(int,input().split())) ans = 1 #b = 1 for i in range(n): tmp1 = math.factorial(a[i]) tmp2 = (a[i]**tmp1) ans = tmp2*ans #b *= (a[i]**(math.factorial(a[i]))) #print(b) if ans > 0: print(((10**9)+7)%ans) else: print(-1)