| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1366285 | sodoo | 서열 (APIO23_sequence) | C++20 | 2095 ms | 6488 KiB |
#include "sequence.h"
#include<bits/stdc++.h>
using namespace std;
int sequence(int N,vector<int> A){
vector<int> v;
int mx=0;
for(int i=0;i<N;i++){
for(int j=0;j<N;j++){
for(int t=i;t<=j;t++){
v.push_back(A[t]);
}
sort(v.begin(),v.end());
int n=v.size();
int sumy=0,sumx=0,y=v[n/2],x=v[n/2+n%2];
for(int t=0;t<n;t++){
if(v[t]==y) sumy+=1;
if(v[t]==x) sumx+=1;
}
sumy=max(sumy,sumx);
mx=max(mx,sumy);
}
}
return mx;
}| # | 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... | ||||
