Problem C
Cocoa Coalition
Alice and Bob decide to share a chocolate bar, which is an
What is the minimum number of splits that Alice and Bob need
to perform in order to split the
![\includegraphics[width=0.4\textwidth ]{sample2}](/problems/cocoacoalition/file/statement/en/img-0001.png)
Input
The input consists of a single line, containing the three
integers
Output
Output the minimum number of splits needed to achieve the desired division of chocolate.
Sample Input 1 | Sample Output 1 |
---|---|
3 10 9 |
1 |
Sample Input 2 | Sample Output 2 |
---|---|
10 10 71 |
3 |