# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
101097 | ansol4328 | Ideal city (IOI12_city) | C++11 | 115 ms | 14968 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<vector>
#include<algorithm>
using namespace std;
typedef long long ll;
struct in
{
ll x, y, Vn, Hn, vc, hc;
in() {}
in(ll a, ll b) : x(a), y(b) {}
};
bool cmp1(const in &a, const in &b)
{
return a.x<b.x || (a.x==b.x && a.y<b.y);
}
bool cmp2(const in &a, const in &b)
{
return a.y<b.y || (a.y==b.y && a.x<b.x);
}
ll n;
in m[100005];
ll Vcnt[100005], Hcnt[100005];
vector<ll> Vlst[100005], Hlst[100005];
ll res;
const ll MOD=1e9;
Compilation message (stderr)
# | 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... |