Graph

AtCoder abc243 参加メモ

AtCoder Beginner Contest 243 - AtCoder の参加メモ C - Collision 2 yが同値の座標同士で右向きのx最小値、左向きのx最大値を調べて、 右向きのx最小値 < 左向きのx最大値 になっていたら Yes #include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=</bits/stdc++.h>…