Example 1:
Input
3
ANN
Output
9
Explanation
As two stones have the same weight; the max weight
for one of them needs to be incremented to 3.
Alex can set the box with 2+3+4=9 weights.
Example 2:
Input
2
3
4
5
Answers
Answered by
0
Answer:
sorry i didnt understand your question
Similar questions
Computer Science,
2 months ago
English,
2 months ago
English,
5 months ago
Math,
5 months ago
Psychology,
10 months ago
Math,
10 months ago