結果

問題 No.1682 Unfair Game
ユーザー 👑 rin204
提出日時 2021-09-18 09:38:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 53,464 KB
最終ジャッジ日時 2024-06-30 06:10:03
合計ジャッジ時間 1,843 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9 + 7

n = int(input())
plst = list(map(int, input().split()))
cnt1 = sum(p > 50 for p in plst)
cnt2 = sum(p < 50 for p in plst)
if cnt1:
    print(pow(2, cnt1 + cnt2 - 1, MOD))
else:
    print(0)
0