結果
問題 |
No.1237 EXP Multiple!
|
ユーザー |
|
提出日時 | 2020-09-26 10:59:50 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 138 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 112,552 KB |
最終ジャッジ日時 | 2024-06-28 20:58:23 |
合計ジャッジ時間 | 4,336 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 1 TLE * 1 -- * 13 |
ソースコード
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)