結果
| 問題 |
No.1237 EXP Multiple!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-25 22:35:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 283 bytes |
| コンパイル時間 | 124 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 32,868 KB |
| 最終ジャッジ日時 | 2024-06-28 07:00:39 |
| 合計ジャッジ時間 | 4,346 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 TLE * 1 -- * 13 |
ソースコード
N = int(input())
A = tuple(map(int, input().split()))
DIV = 10 ** 9 + 7
if 0 in A:
print(-1)
exit()
ans = 1
for a in A:
if a >= 4:
# 10e9+7を答で割る?
print(DIV)
exit()
for i in range(1, a + 1):
ans *= a ** i
print(DIV % ans)