Submission #148447

# Submission time Handle Problem Language Result Execution time Memory
148447 2019-09-01T04:25:12 Z 욱방켜!! (twitch.tv/wookje)(#3584, kig9981, cheetose, jh05013) List of Unique Integers (FXCUP4_unique) C++17
0 / 100
5 ms 256 KB
#include "unique.h"

int cnt[200][200];

std::vector<int> PickUnique(int N) {
	std::vector<int> ret(N);
	for(int i=0;i<N;i++) {
		cnt[i][i]=1;
		for(int j=0;j<i;j++) {
			cnt[j][i]=UniqueCount(j,i);
		}
	}
	for(int i=0;i<N;i++) for(int j=0;j<i;j++) if(cnt[j][i]==cnt[j+1][i]) ret[j]=1;
	for(int i=N-1;i>=0;i--) for(int j=N-1;j>i;j--) if(cnt[i][j]==cnt[i][j-1]) ret[j]=1;
	return ret;
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Correct : C = 1
2 Incorrect 5 ms 256 KB Wrong
3 Halted 0 ms 0 KB -