結果
問題 |
No.24 数当てゲーム
|
ユーザー |
|
提出日時 | 2024-01-15 21:20:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 612 bytes |
コンパイル時間 | 2,779 ms |
コンパイル使用メモリ | 193,960 KB |
最終ジャッジ日時 | 2025-02-18 20:13:41 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n; vector<int> f(10,0); cin>>n; for(int i=1;i<=n;i++){ int a,b,c,d; string s; cin>>a>>b>>c>>d>>s; if(s=="YES"){ for(int j=0;j<10;j++){ if(j!=a&&j!=b&&j!=c&&j!=d){ f[j]=-1; } } } else{ f[a]=-1; f[b]=-1; f[c]=-1; f[d]=-1; } } for(int i=0;i<=10;i++){ if(f[i]==0){ cout<<i<<endl; } } //system("pause"); }