結果

問題 No.870 無敵囲い
ユーザー CleyLCleyL
提出日時 2019-08-30 21:26:40
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 515 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 63,696 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-11 16:07:19
合計ジャッジ時間 1,311 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
  int n;cin>>n;
  bool a = false,b=false,c=false;

  for(int i = 0; n > i; i++){
    int x1,y1,x2,y2;cin>>x1>>y1>>x2>>y2;
    if(x1 == 7 && y1 == 9){
      if(x2 == 6 && y2 == 8){
        a = true;
      }
    }
    if(x1 == 2 && y1 == 8){
      if(x2 == 5 && y2 == 8){
        b = true;
      }
    }
    if(x1 == 7 && y1 == 9){
      if(x2 == 6 && y2 == 8){
        c = true;
      }
    }
  }
  if(a&&b&&c)cout << "YES" << endl;
  else cout << "NO" << endl;
}
0