結果

問題 No.1682 Unfair Game
ユーザー brthyyjpbrthyyjp
提出日時 2021-09-18 00:22:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,264 KB
実行使用メモリ 71,724 KB
最終ジャッジ日時 2023-09-12 10:42:53
合計ジャッジ時間 2,996 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,148 KB
testcase_01 AC 69 ms
71,652 KB
testcase_02 AC 70 ms
71,724 KB
testcase_03 AC 69 ms
71,444 KB
testcase_04 AC 71 ms
71,448 KB
testcase_05 AC 69 ms
71,500 KB
testcase_06 AC 71 ms
71,384 KB
testcase_07 AC 71 ms
71,716 KB
testcase_08 AC 69 ms
71,616 KB
testcase_09 AC 72 ms
71,608 KB
testcase_10 AC 71 ms
71,416 KB
testcase_11 AC 70 ms
71,384 KB
testcase_12 AC 71 ms
71,520 KB
testcase_13 AC 71 ms
71,204 KB
testcase_14 AC 70 ms
71,500 KB
testcase_15 AC 71 ms
71,328 KB
testcase_16 AC 70 ms
71,504 KB
testcase_17 AC 69 ms
71,232 KB
testcase_18 AC 70 ms
71,416 KB
testcase_19 AC 69 ms
71,652 KB
testcase_20 AC 72 ms
71,380 KB
testcase_21 AC 70 ms
71,440 KB
権限があれば一括ダウンロードができます

ソースコード

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
        
if n1 == 0:
    print(0)
else:
    ans = pow(2, n0+n1-1, mod)
    print(ans)
0