# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
69503 | leejseo | Aliens (IOI16_aliens) | C++11 | 60 ms | 5612 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 "aliens.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long lld;
typedef struct point{
lld r, c;
point(lld r_, lld c_){
r = min(r_, c_);
c = max(r_, c_);
}
bool operator < (const point &other) const{
return c != other.c ? c < other.c : r > other.r;
}
} point;
vector<point> P, A;
int N = 0;
lld D[501][501];
const lld INF = 1LL<<62;
inline lld square (lld x) { return x * x; }
lld take_photos(int n, int m, int k, vector<int> r, vector<int> c) {
for (int i=0; i<n; i++) P.push_back(point(r[i], c[i]));
sort(P.begin(), P.end());
for (int i=0; i<n; i++){
point p = P[i];
while (N){
if ((A.back()).r >= p.r){
# | 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... |