Codeforces Round #521 (Div. 3) D. Cutting Out 【二分+排序】
任意門:http://codeforces.com/contest/1077/problem/D
D. Cutting Out time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard outputYou are given an array ss consisting of
You have to find any array tt of length kk such that you can cut out maximum number of copies of array tt from array ss.
Cutting out the copy of tt means that for each element titi of array tt you have to find