結果

問題 No.24 数当てゲーム
ユーザー chacoder1chacoder1
提出日時 2020-11-22 09:06:46
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 2,014 ms
コンパイル使用メモリ 197,936 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-30 22:32:20
合計ジャッジ時間 2,822 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

int main(){
  int ck[10];
  for(int i=0;i<=9;i++){
    ck[i]=1;
  }
  int N;
  cin>>N;
  int a,b,c,d;
  string s;
  for(int i=0;i<N;i++){
    cin>>a>>b>>c>>d;
    cin>>s;
    if(s=="NO"){
      ck[a]=0;
      ck[b]=0;
      ck[c]=0;
      ck[d]=0;
    }
  }
  for(int i=0;i<=9;i++){
    if(ck[i]==1){
      cout<<i<<endl;
      return 0;
    }
  }
  return 0;
}
0