LeetCode Biweekly Contest 23
問題文
省略
省略
C++に変換後のコードはこちら
#define main dummy_main
{}
#undef main
class Solution {
public:
bool checkOverlap(int r, int cx, int cy, int x1, int y1, int x2, int y2) {
int x = Kth1(x1,x2,cx), y = Kth1(y1,y2,cy);
return ((x-cx)**2 + (y-cy)**2 <= r**2);
}
};
Current time: 2024年04月19日23時00分42秒
Last modified: 2020年04月10日06時28分10秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る
Logged in as: unknown user (not login)