# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1130114 | cutimeo | Exam (eJOI20_exam) | C++20 | 583 ms | 68208 KiB |
#include<bits/stdc++.h>
using namespace std;
int n;
int a[5005], b[5005];
int sus[5005][5005];
int f[5005];
int cnt[5005];
vector<vector<int>> ps(5005);
vector<vector<int>> fuq(5005);
int pre[5005];
int suf[5005];
bool check[5005];
namespace sub1{
void solve(){
for (int i = 1; i <= n; i++){
for (int j = 1; j <= n; j ++) check[j] = 0;
for (int j = 1; j <= n; j ++){
for (auto k : ps[j]){
if (k >= i){
pre[k] = k;
suf[k] = k;
check[k] = 1;
if (check[k - 1]){
pre[k] = pre[k - 1];
suf[pre[k]] = k;
}
if (check[k + 1]){
pre[suf[k + 1]] = pre[k];
suf[pre[k]] = suf[k + 1];
# | 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... |