結果
問題 |
No.24 数当てゲーム
|
ユーザー |
![]() |
提出日時 | 2018-02-03 00:11:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 627 ms |
コンパイル使用メモリ | 64,252 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 08:20:30 |
合計ジャッジ時間 | 1,265 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 8 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<cmath> using namespace std; int main(){ bool ans[10]; int N,A,B,C,D; string s; cin >> N; while(N--){ cin >> A >> B >> C >> D >> s; if(s=="NO"){ ans[A] = true; ans[B] = true; ans[C] = true; ans[D] = true; } } for(int i=0;i<10;i++){ if(!ans[i]) cout << i; } return 0; }