링크 : https://school.programmers.co.kr/learn/courses/30/lessons/1845
#include <vector>
#include <set>
using namespace std;
int solution(vector<int> nums)
{
set<int> s;
int answer = 0;
int n = nums.size() / 2;
for(int i = 0; i < nums.size(); i++){
s.insert(nums[i]);
}
if(s.size() < n) answer = s.size();
else answer = n;
return answer;
}