Tap here to switch tabs
Problem
Submissions

Problem: Maximum Score From Removing Stones

med
30 min
Try to solve the Maximum Score From Removing Stones problem.

Statement

You are playing a game with 33 piles of stones containing a, b, and c stones respectively. In each move, you can choose 22 distinct piles that are not empty, remove 11 stone from each of the selected piles, and earn 11 point. The game ends when there are fewer than 22 piles with stones remaining.

Return the maximum score you can achieve.

Constraints:

  • 1≤1 \leq a, b, c ≤105\leq 10^5

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Maximum Score From Removing Stones

med
30 min
Try to solve the Maximum Score From Removing Stones problem.

Statement

You are playing a game with 33 piles of stones containing a, b, and c stones respectively. In each move, you can choose 22 distinct piles that are not empty, remove 11 stone from each of the selected piles, and earn 11 point. The game ends when there are fewer than 22 piles with stones remaining.

Return the maximum score you can achieve.

Constraints:

  • 1≤1 \leq a, b, c ≤105\leq 10^5