练61.2 掷骰子
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Bessie loves playing Board Role-Playing Games (BRPG), so she convinced Farmer John to drive her to the store where she bought three dice.
These three dice have , , and faces respectively. Each die with faces has numbers from to on its faces.
Bessie throws all three dice at once, and she keeps throwing them to find out which sum of the three dice appears most frequently.
Given the number of faces on each of the three dice, determine which sum appears most frequently. If there are multiple solutions, output the smallest one.
Data range: (; ; ).
Input Format
First line: Three positive integers , , .
Output Format
A single integer representing the most frequently occurring sum.
Sample
3 2 35
20250920C班作业(2)
- Status
- Done
- Problem
- 4
- Open Since
- 2025-9-20 0:00
- Deadline
- 2025-10-11 23:59
- Extension
- 24 hour(s)