# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
635571 | ionan6ix | Aliens (IOI16_aliens) | C++17 | 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<bits/stdc++.h>
using namespace std;
long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) {
//if(n<=50 && m<=100 && k==n) //First Subtask
{
int sol = 0;
vector<vector<int> > matrix;
matrix.resize(n);
for(int i = 0;i<n;i++)
matrix[i].resize(n);
for(int i=0;i<n;i++)
for(int j=0;j<n;j++)
matrix[i][j] = 0;
vector<pair<int,int> > obj;
for(int i=0;i<n;i++)
obj.push_back(make_pair(r[i],c[i]));
sort(obj.begin(),obj.end());
for(auto it:obj)
{
# | 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... |