#include #include using namespace std; int main() { int n, count, r[100001]; cin >> n; for (int i = 0; i > r[i]; } sort(r, r + n); for (int i = 0; i n; for (i = 0; i > tmp; cache[tmp]++; } long long max = -1; int total = n; for (i = 1; i 0) { if (max < i*total) { max = i * total; } total -= cac..