結果
| 問題 |
No.24 数当てゲーム
|
| コンテスト | |
| ユーザー |
rhincodon66
|
| 提出日時 | 2018-09-07 18:16:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 461 bytes |
| コンパイル時間 | 2,617 ms |
| コンパイル使用メモリ | 169,476 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 04:20:31 |
| 合計ジャッジ時間 | 3,375 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;cin >> n;
vector<bool> l(10,true);
for(int i=0;i<n;++i){
int a,b,c,d;
cin >> a >> b >> c >> d;
string s;
cin >> s;
if(s=="YES"){
for(int j=1;j<10;++j){
if(a==j || b==j || c==j || d==j) continue;
else l.at(j)=false;
}
}
else{
l.at(a)=false;
l.at(b)=false;
l.at(c)=false;
l.at(d)=false;
}
}
for(int i=1;i<10;++i){
if(l.at(i)) cout << i << endl;
}
}
rhincodon66