結果

問題 No.1237 EXP Multiple!
ユーザー timi
提出日時 2020-09-26 18:19:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,680 KB
最終ジャッジ日時 2024-06-29 12:56:16
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 1 WA * 4 TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int, input().split()))
mod=10**9+7
if min(A)==0:
    print(-1)
    exit()
print(mod)
D=[1,1,4,729]
d=1
for i in A:
    if i>4:
        print(0)
        exit()
    else:
        d*=D[i]
print(mod%d)
0