結果

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

ソースコード

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 up:
    print((pow(2, up - 1, MOD) * pow(2, down, MOD)) % MOD)
else:
    print(0)
0