結果

問題 No.1682 Unfair Game
ユーザー NatsubiSogan
提出日時 2021-09-18 00:57:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-29 23:48:43
合計ジャッジ時間 1,300 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int, input().split()))
und, ovr = 0, 0
for i in range(n):
	if p[i] > 50: ovr += 1
	if p[i] < 50: und += 1
if ovr == 0: print(0)
else: print(pow(2, ovr + und - 1, 10 ** 9 + 7))
0