結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
chocorusk
|
| 提出日時 | 2019-08-30 21:46:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 300 ms |
| コード長 | 845 bytes |
| コンパイル時間 | 740 ms |
| コンパイル使用メモリ | 99,256 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 06:17:29 |
| 合計ジャッジ時間 | 1,352 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#define popcount __builtin_popcount
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
int main()
{
int n; cin>>n;
int x[3]={2, 3, 7}, y[3]={8, 9, 9};
for(int i=0; i<n; i++){
int x1, y1, x2, y2; cin>>x1>>y1>>x2>>y2;
for(int j=0; j<3; j++){
if(x1==x[j] && y1==y[j]){
x[j]=x2, y[j]=y2;
}
}
}
if(x[0]==5 && y[0]==8 && x[1]==4 && y[1]==8 && x[2]==6 && y[2]==8){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
return 0;
}
chocorusk