結果

問題 No.1682 Unfair Game
ユーザー Sumitacchan
提出日時 2021-08-01 15:04:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-29 17:42:32
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
Created on Sun Aug  1 14:59:24 2021

@author: sumitacchan
"""

N = int(input())
P = list(map(int, input().split()))
mod = 10**9+7

n0 = 0
n1 = 0
n2 = 0
for x in P:
    if x < 50:
        n0 += 1
    elif x == 50:
        n1 += 1
    elif x > 50:
        n2 += 1

ans = 0
if n2 > 0:
    ans = 1 << (n0 + n2 - 1)
    ans %= mod
print(ans)
0