This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main ()
{
vector<pair<int,int>> v;
int n, a, b;
cin >> n;
for(int i = 0;i < n;++i)
{
cin >> a >> b;
v.push_back({a,b});
}
if(abs(v[0].first-v[1].first) <= v[0].second-v[1].second or abs(v[1].first-v[0].first) <= v[1].second-v[0].second)
cout << 1;
else
cout << 2;
}
# | 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... |