~/algor $ cat problems/jadvalda-k-necha-marta
How many times k is in the table
Medium
1000 ms
64 MB
44%
There is a multiplication table with $n$ rows and $m$ columns: the cell at row $i$ and column $j$ contains $i \cdot j$. In how many cells of the table does the number $k$ appear?
Input
One line with three positive integers: $n$, $m$ and $k$.
Output
One integer — the number of cells containing $k$.
Note
$1 \le n, m \le 10^{5}$
$1 \le k \le 10^{10}$
Examples
Input #1
4 6 12
Output #1
3
Input #2
3 3 7
Output #2
0