結果

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

ソースコード

diff #

n = int(input())
P = list(map(int,input().split()))
b = 0
s = 0
for p in P:
    if p > 50:
        b += 1
    if p < 50:
        s += 1
if b == 0:
    print(0)
else:
    print(pow(2,b+s-1,10**9+7))
0