結果
| 問題 | No.870 無敵囲い | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2019-08-30 21:29:26 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 515 bytes | 
| コンパイル時間 | 492 ms | 
| コンパイル使用メモリ | 63,616 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:14:50 | 
| 合計ジャッジ時間 | 1,037 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 9 WA * 9 | 
ソースコード
#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 == 5 && y2 == 8){
        a = true;
      }
    }
    if(x1 == 2 && y1 == 8){
      if(x2 == 4 && 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;
}
            
            
            
        