Problem A
Töflur
Languages
en
is
You really like playing games with your friend. You are
currently playing a game where each player is given
The player with the lowest score wins.
Input
The first line of the input is an integer
Output
The only line of the output should contain one integer, the lowest score you can achieve by arranging your tiles optimally.
Scoring
Groups |
Points |
Constraints |
1 |
15 |
|
2 |
42 |
|
3 |
43 |
No further constraints |
Sample Input 1 | Sample Output 1 |
---|---|
9 1 2 3 1 1 2 2 3 3 |
2 |
Sample Input 2 | Sample Output 2 |
---|---|
7 4 8 7 25 95 97 6 |
5199 |