| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 148460 | 还没编好 (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 6 ms | 560 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "unique.h"
using namespace std;
vector<int> PickUnique(int N) {
vector<int> b(N,1);
int p=0;
for(int r=0;r<N;++r)
{
int g=UniqueCount(0,r);
if(g<=p) b[r]=0; p=g;
}
p=0;
for(int r=N-1;r>=0;--r)
{
int g=UniqueCount(r,N-1);
if(g<=p) b[r]=0; p=g;
}
return b;
}
#ifdef LOCAL
#include "grader.cpp"
#endif
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
