結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2019-08-30 21:44:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 300 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 1,491 ms |
| コンパイル使用メモリ | 167,236 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 06:16:25 |
| 合計ジャッジ時間 | 1,937 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
const int MOD=1e9+7;
const int INF=1e9;
//const int MOD=998244353;
const long long LINF=1e18;
#define int long long
//template
//main
signed main(){
int N;cin>>N;
typedef pair<int,int> P;
P a,b,c;a=P(2,8);b=P(3,9);c=P(7,9);
while(N--){
int x,y,x2,y2;cin>>x>>y>>x2>>y2;
if(a==P(x,y))a=P(x2,y2);
if(b==P(x,y))b=P(x2,y2);
if(c==P(x,y))c=P(x2,y2);
}
if(a==P(5,8)&&b==P(4,8)&&c==P(6,8))cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
cureskol