結果

問題 No.1237 EXP Multiple!
ユーザー daikisuyamadaikisuyama
提出日時 2020-09-26 10:59:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 929 ms
コンパイル使用メモリ 86,280 KB
実行使用メモリ 105,492 KB
最終ジャッジ日時 2023-09-11 06:46:20
合計ジャッジ時間 7,388 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
70,920 KB
testcase_01 AC 142 ms
100,152 KB
testcase_02 AC 157 ms
102,424 KB
testcase_03 AC 159 ms
102,048 KB
testcase_04 AC 128 ms
100,880 KB
testcase_05 WA -
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=sorted(list(map(int,input().split())),reverse=True)
#ギャグ
mod=10**9+7
if max(a)>3:
    print(mod)
    exit()
ans=1
for i in a:
    for j in range(i):
        ans*=(i**(j+1))
print(mod%ans)
0