結果
| 問題 |
No.870 無敵囲い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-03 17:05:50 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 300 ms |
| コード長 | 356 bytes |
| コンパイル時間 | 671 ms |
| コンパイル使用メモリ | 77,696 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 02:21:12 |
| 合計ジャッジ時間 | 1,659 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include<iostream>
using namespace std;
int main(){
int n,x1,y1,x2,y2;
cin>>n;
int ax=2,ay=8,bx=3,by=9,cx=7,cy=9;
while(cin>>x1>>y1>>x2>>y2){
if(ax==x1&&ay==y1){
ax=x2;
ay=y2;
}
if(bx==x1&&by==y1){
bx=x2;
by=y2;
}
if(cx==x1&&cy==y1){
cx=x2;
cy=y2;
}
}
cout<<(ax==5&&ay==8&&bx==4&&by==8&&cx==6&&cy==8?"YES":"NO")<<endl;
}