結果

問題 No.1682 Unfair Game
ユーザー rin204
提出日時 2021-09-18 09:37:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,720 KB
実行使用メモリ 53,316 KB
最終ジャッジ日時 2024-06-30 06:09:36
合計ジャッジ時間 1,534 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11 WA * 9
権限があれば一括ダウンロードができます

ソースコード

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 cnt2:
    print(pow(2, cnt1 + cnt2 - 1, MOD))
else:
    print(0)
0