# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
433482 | Monchito | Aliens (IOI16_aliens) | C++14 | 1 ms | 300 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 <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
using ll = long long;
struct point{
int r, c;
bool operator<(const point& p) const {
if(r != p.r) return r < p.r;
return c > p.c;
}
};
const int MAXM = 100, MAXN = 50;
bool a[MAXM][MAXM];
ll take_photos(int n, int m, int k, vector<int> r, vector<int> c) {
memset(a, false, sizeof(a));
point interest[n];
for(int i=0; i<n; i++) interest[i] = { r[i], c[i] };
sort(interest, interest+n);
ll ret = 0;
for(point x : interest) {
# | 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... |