| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1355839 | orgiloogii | September (APIO24_september) | C++20 | 52 ms | 5288 KiB |
#include "september.h"
#include <bits/stdc++.h>
using namespace std;
int solve(int n, int m, vector<int> f, vector<vector<int>> s) {
vector <vector <bool>> vis(m + 1,vector <bool>(n + 1, 0));
vector <int> mn(m + 1, INT_MAX);
int ans = 0;
int temp = 0;
for (int i = 0;i < n - 1;i++) {
int ls = temp;
for (int j = 0;j < s.size();j++) {
mn[j] = min(mn[j], s[j][i]);
}
bool pos = true;
if (mn[0] != n - i - 1) continue;
for (int i = 1;i < m;i++) {
if (mn[i] != mn[0]) {
pos = false;
break;
}
}
if (pos) ans++;
}
return ans;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
