| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 148400 | test team (#200) | List of Unique Integers (FXCUP4_unique) | C++17 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "unique.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> PickUnique(int n) {
vector<int> ret;
if(UniqueCount(0,n-1)-UniqueCount(1,n-1)==1)
ret.push_back(1);
else
ret.push_back(0);
for(int i=1;i<n-1;i++)
{
if(UniqueCount(0,i)-UniqueCount(0,i-1)==1&&UniqueCount(i,n-1)-UniqueCount(i+1,n-1)==1)
ret.push_back(1);
else
ret.push_back(0);
}
if(Unique_Count(0,n-1)-Unique_Count(0,n-2)==1)
ret.push_back(1);
else
ret.push_back(0);
return ret;
}
