結果

問題 No.1682 Unfair Game
ユーザー 👑 rin204rin204
提出日時 2021-09-18 09:38:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 720 ms
コンパイル使用メモリ 86,768 KB
実行使用メモリ 71,364 KB
最終ジャッジ日時 2023-09-12 18:29:28
合計ジャッジ時間 3,145 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,788 KB
testcase_01 AC 73 ms
70,968 KB
testcase_02 AC 75 ms
70,964 KB
testcase_03 AC 73 ms
71,116 KB
testcase_04 AC 72 ms
70,600 KB
testcase_05 AC 72 ms
71,252 KB
testcase_06 AC 72 ms
70,936 KB
testcase_07 AC 72 ms
70,984 KB
testcase_08 AC 73 ms
70,752 KB
testcase_09 AC 71 ms
71,252 KB
testcase_10 AC 70 ms
71,132 KB
testcase_11 AC 70 ms
71,200 KB
testcase_12 AC 71 ms
70,624 KB
testcase_13 AC 72 ms
71,364 KB
testcase_14 AC 71 ms
71,028 KB
testcase_15 AC 71 ms
71,116 KB
testcase_16 AC 71 ms
70,928 KB
testcase_17 AC 72 ms
70,936 KB
testcase_18 AC 73 ms
70,940 KB
testcase_19 AC 73 ms
71,244 KB
testcase_20 AC 72 ms
70,900 KB
testcase_21 AC 70 ms
70,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 10 ** 9 + 7

n = int(input())
plst = list(map(int, input().split()))
cnt1 = sum(p > 50 for p in plst)
cnt2 = sum(p < 50 for p in plst)
if cnt1:
    print(pow(2, cnt1 + cnt2 - 1, MOD))
else:
    print(0)
0