답안 #148382

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
148382 2019-09-01T04:14:19 Z Torat(#3726, Osama_Alkhodairy, mohammedehab2002, mahmoudbadawy) List of Unique Integers (FXCUP4_unique) C++17
35 / 100
7 ms 512 KB
#include "unique.h"
#include <bits/stdc++.h>
using namespace std;
int get(int l,int r)
{
	if (r<l)
	return 0;
	return UniqueCount(l,r);
}
vector<int> PickUnique(int n)
{
	vector<int> ans(n);
	for (int i=0;i<n;i++)
	ans[i]=(get(0,i)-get(0,i-1)>0 && get(i,n-1)-get(i+1,n-1)>0);
	return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Correct : C = 5
2 Correct 5 ms 384 KB Correct : C = 15
3 Correct 6 ms 384 KB Correct : C = 77
4 Correct 6 ms 384 KB Correct : C = 168
5 Correct 6 ms 384 KB Correct : C = 167
6 Correct 6 ms 384 KB Correct : C = 242
7 Correct 6 ms 384 KB Correct : C = 323
8 Partially correct 6 ms 384 KB Partially correct : C = 496
9 Partially correct 5 ms 512 KB Partially correct : C = 571
10 Partially correct 6 ms 512 KB Partially correct : C = 651
11 Partially correct 6 ms 512 KB Partially correct : C = 659
12 Partially correct 6 ms 512 KB Partially correct : C = 643
13 Partially correct 6 ms 512 KB Partially correct : C = 652
14 Partially correct 6 ms 512 KB Partially correct : C = 401
15 Partially correct 7 ms 512 KB Partially correct : C = 798