結果

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

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
MOD = 10 ** 9 + 7
up, down = 0, 0
for a in A:
    if a > 50:
        up += 1
    elif a < 50:
        down += 1
if down:
    print((pow(2, up, MOD) * pow(2, down - 1, MOD)) % MOD)
else:
    print(0)
0