| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 148826 | 20190901 (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 8 ms | 512 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "unique.h"
std::vector<int> PickUnique(int N) {
std::vector<int> res(N, 0);
int cnt = UniqueCount(0, N-1);
int real_count=0;
int count=cnt;
int l=0, r=cnt;
for (int i = 1; i < N; i++)
{
int new_l = UniqueCount(0, i-1);
int new_r = UniqueCount(i, N-1);
if(new_l > l && new_r<r)
{
res[i-1]=1;
real_count++;
count--;
}
l=new_l, r=new_r;
}
if(count) res[N-1]=1;
return res;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
