結果

問題 No.1237 EXP Multiple!
ユーザー 👑 timitimi
提出日時 2020-09-26 18:19:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 30,028 KB
最終ジャッジ日時 2023-09-11 23:32:38
合計ジャッジ時間 4,546 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 52 ms
11,280 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

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