結果

問題 No.1237 EXP Multiple!
ユーザー daikisuyamadaikisuyama
提出日時 2020-09-26 11:04:37
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 213 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 109,828 KB
最終ジャッジ日時 2023-09-11 06:52:43
合計ジャッジ時間 5,443 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,344 KB
testcase_01 AC 117 ms
98,084 KB
testcase_02 AC 130 ms
100,172 KB
testcase_03 AC 130 ms
100,484 KB
testcase_04 AC 131 ms
99,300 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()))
#ギャグ
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)
0