CF 103443D - Largest Remainder

We are given a multiset of digits, each between 1 and 9, and we are allowed to arrange all of them into a single number by permuting their order. Every permutation produces a different integer. We then divide that integer by a

CF 103443D - Largest Remainder

Rating: -
Tags: -
Solve time: 39s
Verified: no

Solution

Problem Understanding

We are given a multiset of digits, each between 1 and 9, and we are allowed to arrange all of them into a single number by permuting their order. Every permutation produces a different integer. We then divide that integer by a