結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
otamay6
|
| 提出日時 | 2019-08-30 21:35:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 533 bytes |
| コンパイル時間 | 1,539 ms |
| コンパイル使用メモリ | 170,276 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 06:16:09 |
| 合計ジャッジ時間 | 1,996 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 5 |
ソースコード
#include<bits/stdc++.h>
#define REP(i,n) for(int i=0,i##_len=(n);i<i##_len;++i)
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
#define All(x) (x).begin(),(x).end()
using namespace std;
int main(){
int N;cin>>N;
vector<vector<int>> porn(10,vector<int>(10,0));
porn[2][8]=1;
porn[3][9]=2;
porn[7][9]=3;
REP(i,N){
int x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
porn[x2][y2]=porn[x1][y1];
}
if(porn[5][8]==1&&porn[4][8]==2&&porn[6][8]==3) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
otamay6