# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
758027 | Dexva | Towers (NOI22_towers) | C++14 | 2072 ms | 115360 KiB |
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;
#define lln long long
void solve() {
lln n; cin >> n;
vector< pair<lln, lln> > points;
map<lln, vector<lln> > xs; //for each
map<lln, vector<lln> > ys;
for (lln i=0;i<n;i++) {
lln x, y; cin >> x >> y;
if (xs.find(x) != xs.end()) xs[x].push_back(i);
else {
vector<lln> nx; nx.push_back(i);
xs[x] = nx;
}
if (ys.find(y) != ys.end()) ys[y].push_back(i);
else {
vector<lln> ny; ny.push_back(i);
ys[y] = ny;
}
points.push_back(make_pair(x,y));
}
// for (const auto& x : xs) {
// vector<lln> xentry = x.second;
// cout << x.first << " | ";
# | 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... |