結果
| 問題 | No.1237 EXP Multiple! |
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2020-09-25 23:40:14 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 36,900 KB |
| 最終ジャッジ日時 | 2026-07-31 19:07:40 |
| 合計ジャッジ時間 | 5,128 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 TLE * 1 -- * 13 |
ソースコード
N=input()
A=list(map(int,input().split()))
d=[1,1,2,6]
if max(A)>3:
print(10**9+7)
elif min(A)==0:
print(-1)
else:
ans=1
for i in A:
ans*=pow(i,d[i])
print((10**9+7)%ans)
#そういうことかことか take2
harurun