結果

問題 No.1682 Unfair Game
ユーザー hitonanode
提出日時 2021-08-14 16:25:56
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 765 ms
コンパイル使用メモリ 66,508 KB
最終ジャッジ日時 2025-01-23 22:07:38
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
    int n0 = 0, n1 = 0, N;
    cin >> N;
    while (N--) {
        int a;
        cin >> a;
        if (a < 50) n0++;
        if (a > 50) n1++;
    }
    cout << (n1 ? (int)((__int128(1) << (n0 + n1 - 1)) % 1000000007): 0) << '\n';
}
0