Douglas is asking for your help to estimate the total number of rats in his area. Looking up in your statistics textbook, you propose using the Chapman estimator $$$\widehat{N}$$$, given by: $$$$$$ \widehat{N} = \left\lfloor \frac{(n_1+1)(n_2+1)}{n_{12}+1} -1\right\rfloor $$$$$$ where $$$\lfloor x\rfloor$$$ is the floor of a real number $$$x$$$, i.e., the closest integer less than or equal to $$$x$$$.
The input consists of a single line, with three space-separated integers: $$$n_1$$$, $$$n_2$$$, $$$n_{12}$$$, in that order.
Limits
The output should contain a single line with the single integer $$$\widehat{N}$$$.
15 18 11
24
Название |
---|