제출 #149000

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
1490002019-09-01 05:32:04요까할 로뭘 은명팀 (#200)List of Unique Integers (FXCUP4_unique)C++17
0 / 100
6 ms384 KiB
#include "unique.h"
#include <bits/stdc++.h>
using namespace std;
int a[205][205],x;
vector<int> PickUnique(int n)
{
vector <int> ans;
for(int i = 0;i < n;i++)
{
ans.push_back(1);
a[0][i] = UniqueCount(0,i);
a[i][n-1] = UniqueCount(i,n-1);
}
int l = 1;
for(int i = 1;i < n;i++)
{
x = a[0][i];
if(l == x+1) ans[i] = 0;
if(l == x) ans[i] = 0;
l = x;
}
l = 1;
for(int i = n-2;i >= 0;i--)
{
x = a[i][n-1];
if(l == x+1) ans[i] = 0;
if(l == x) ans[i] = 0;
l = x;
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...