Submission #743027

#TimeUsernameProblemLanguageResultExecution timeMemory
743027vjudge1Lightning Rod (NOI18_lightningrod)C++17
7 / 100
2080 ms66044 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...