結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
not_522
|
| 提出日時 | 2015-07-14 19:20:05 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 820µs | |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 1,022 ms |
| コンパイル使用メモリ | 186,648 KB |
| 実行使用メモリ | 9,868 KB |
| 最終ジャッジ日時 | 2026-11-15 14:12:23 |
| 合計ジャッジ時間 | 2,368 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
struct Question {
array<int, 4> v;
bool res;
};
int main() {
int n;
cin >> n;
vector<Question> q(n);
for (int i = 0; i < n; ++i) {
for (int& j : q[i].v) cin >> j;
string s;
cin >> s;
q[i].res = (s == "YES");
}
for (int i = 0; i < 10; ++i) {
auto f = [&](Question q){return (find(q.v.begin(), q.v.end(), i) != q.v.end()) == q.res;};
if (all_of(q.begin(), q.end(), f)) {
cout << i << endl;
}
}
}
not_522