結果

問題 No.1682 Unfair Game
ユーザー brthyyjpbrthyyjp
提出日時 2021-09-18 00:17:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-09-12 10:36:20
合計ジャッジ時間 3,097 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,604 KB
testcase_01 AC 72 ms
71,412 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 73 ms
71,416 KB
testcase_05 WA -
testcase_06 AC 73 ms
71,104 KB
testcase_07 AC 71 ms
71,140 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,240 KB
testcase_10 WA -
testcase_11 AC 72 ms
71,188 KB
testcase_12 AC 72 ms
71,640 KB
testcase_13 AC 71 ms
71,596 KB
testcase_14 AC 73 ms
71,380 KB
testcase_15 AC 71 ms
71,260 KB
testcase_16 AC 73 ms
71,324 KB
testcase_17 AC 72 ms
71,560 KB
testcase_18 AC 72 ms
71,504 KB
testcase_19 WA -
testcase_20 AC 72 ms
71,388 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

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