結果

問題 No.1237 EXP Multiple!
ユーザー 👑 KazunKazun
提出日時 2020-09-25 21:36:05
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 198 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 109,332 KB
最終ジャッジ日時 2023-09-10 15:00:23
合計ジャッジ時間 5,057 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
75,828 KB
testcase_01 AC 99 ms
98,192 KB
testcase_02 AC 120 ms
100,016 KB
testcase_03 AC 123 ms
100,344 KB
testcase_04 AC 124 ms
99,436 KB
testcase_05 RE -
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()))

if max(A)>=4:
    print(10**9+7)
    exit()

T=[0,1,4,729]
X=1
for a in A:
    X*=T[a]

if (10**9+7)%X==0:
    print(-1)
else:
    print((10**9+7)%X)
0