| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1340692 | uranhishig | Lightning Rod (NOI18_lightningrod) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int n;
cin >> n;
vector<int> x(n);
vector<int> y(n);
for (int i = 0; i < n; i++) {
cin >> x[i] >> y[i];
}
if (n == 2) {
if((abs(x[i] - x[j])) < y[i] - y[j]) {
cout << 1;
return 0;
}
if((abs(x[i] - x[j])) < - y[i] + y[j]) {
cout << 1;
return 0;
}
cout << 2;
return 0;
}
return 0;
}