結果
| 問題 | 
                            No.24 数当てゲーム
                             | 
                    
| コンテスト | |
| ユーザー | 
                             MiyanagaTeru
                         | 
                    
| 提出日時 | 2019-10-03 16:19:42 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,804 bytes | 
| コンパイル時間 | 2,008 ms | 
| コンパイル使用メモリ | 195,048 KB | 
| 最終ジャッジ日時 | 2025-01-07 20:16:38 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 2 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vel;
typedef vector<int> vei;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> ve_vel;
typedef vector<vector<int>> ve_vei;
typedef vector<vector<char>> ve_vec;
typedef vector<vector<bool>> ve_veb;
typedef vector<vector<string>> ve_ves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pub push_back
#define pob pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
//#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
    vei v(9,1);
    int N; cin >> N;
    rep(i,N) {
        int a, b, c, d; cin >> a >> b >> c >> d;
        string S; cin >> S;
        if(S == "NO") {
            v[a-1] = 0; v[b-1] = 0; v[c-1] = 0; v[d-1] = 0;
        }
        else{
            rep(j,9) {
                if(j == a-1 or j == b-1 or j == c-1 or j == d-1 ) continue;
                v[j] *= 0;
            }
        }
    }
    rep(i,9) {
        if(v[i]==1) {
		cout << i+1 << endl;
          return 0;
        }
        
    }
}
            
            
            
        
            
MiyanagaTeru