#A0462. 游泳同步起步
游泳同步起步
Title Description
33DAI has been learning swimming recently.
- 33DAI's swimming speed is very stable. Every time you depart from the starting point, you can return to the starting point within minutes.
- Kitten's swimming speed is also very stable. Every time you depart from the starting point, you can return to the starting point within minutes.
They started together and swam for n minutes. How many times have they appeared at the starting point simultaneously.
Input format
A row of three integers .
Output format
One integer per line represents the number of times two people appear at the starting point simultaneously.
3 4 15
two
4 6 33
three
6 8 48
three
Example explanation
-The times that occur simultaneously at the starting point in Example 1 are: time and time. -The times that occur simultaneously at the starting point in Example 2 are: time, time, and time. -The times that occur simultaneously at the starting point in Example 3 are: time, time, and time.
Data scale and agreement
For data of , ,
-Subtask 1 (30 points): Ensure that . -Subtask 2 (30 points): Ensure that is a multiple of . -Subtask 3 (40 points): No special restrictions.