結果

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

ソースコード

diff #

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