結果

問題 No.24 数当てゲーム
ユーザー focusfocus
提出日時 2018-02-03 00:11:24
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 449 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 65,264 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-30 02:33:02
合計ジャッジ時間 1,224 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 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,376 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0