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 <string>
#include <set>
#include <algorithm>
#include <iostream>
#include <utility>
#include "aliens.h"
using namespace std;
long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) {
if (k == n && m <= 100){
int total = 0;
for (int i = 0; i < m; i++){
for (int j = 0; j < m; j++){
bool good = false;
for (int a = 0; a < n; a++){
if (i <= max(r[i], c[i]) && j <= max(r[i], c[i]) && i >= min(r[i], c[i]) && j >= min(r[i], c[i])){
good = true;
}
}
if (good){
total++;
}
}
}
return total;
}
return 0;
}
# | 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... |