C ++ program to equally divide n elements into two sets such that second set has maximum distinct elements .
#include <bits/stdc++.h> NEW_LINE using namespace std ; int distribution ( int arr [ ] , int n ) { set < int , greater < int > > resources ;