結果
| 問題 | No.1237 EXP Multiple! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-26 11:05:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 1,284 ms |
| コンパイル使用メモリ | 84,768 KB |
| 実行使用メモリ | 353,232 KB |
| 最終ジャッジ日時 | 2026-03-18 00:36:21 |
| 合計ジャッジ時間 | 10,505 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 WA * 1 RE * 4 TLE * 2 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
#ギャグ
mod=10**9+7
if max(a)>3:
print(mod)
exit()
ans=1
for i in a:
sub=1
for j in range(i):
sub*=(j+1)
ans*=(i**sub)
print(mod%ans if mod%ans!=0 else -1)