結果
| 問題 | No.1682 Unfair Game |
| コンテスト | |
| ユーザー |
hitonanode
|
| 提出日時 | 2021-08-14 16:25:56 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 869 ms |
| コンパイル使用メモリ | 80,132 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2026-06-22 16:52:55 |
| 合計ジャッジ時間 | 1,575 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#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';
}
hitonanode