이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    long long n;
    cin >> n;
    vector<pair<long long,long long> > v;
    bool isSub1=true;
    for(long long i = 0 ; i < n ; i++) {
        long long x;
        cin >> x;
        long long y;
        cin >> y;
        if(y!=1)isSub1=false;
    }
    if(isSub1) {
        cout << n << '\n';
    } else {
        if(n==2) {
            if(abs(v[1].second-v[0].second)>=abs(v[1].first-v[0].first)) {
                cout << 2 << '\n';
            } else {
                cout << 1 << '\n';
            }
        } else {
        }
    }
    return 0;
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... |