結果

問題 No.24 数当てゲーム
ユーザー hachidesyuhachidesyu
提出日時 2020-07-03 12:46:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 538 bytes
コンパイル時間 1,553 ms
コンパイル使用メモリ 164,980 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-14 22:45:34
合計ジャッジ時間 2,266 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
4,348 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int ans[10];
    for(int i = 0; i < 10; i++){
        ans[i] = 1;
    }

    int N;
    cin >> N;

    int taro[6][4];
    string res[6];

    for(int i = 0; i < N; i++){
        cin >> taro[i][0] >> taro[i][1] >> taro[i][2] >> taro[i][3] >> res[i];
    }

    for(int i = 0; i < N; i++){
        if(res[i]=="NO"){
            for(int j = 0; j < 4; j++) ans[taro[i][j]] = 0;
        }
    }

    for(int i = 0; i < 10; i++){
        if(ans[i] != 0) cout << i << endl;
    }
}
0