In the event of technical difficulties with Szkopuł, please contact us via email at szkopul@fri.edu.pl.
If you are familiar with IRC chat, the support team is also reachable on PIRC network (irc.pirc.pl
) in #szkopul
channel. If you are not, just use email.
Please do not ask us things like "how to solve task XYZ?".
Please remember that the support team has to sleep sometimes or go to work in real life.
The Infinity City is located on an infinite quarterplane. There is an infinite number of sky-scrapers in the city, there is one sky-scraper located at every point with integer coordinates.
One unfortunate day there was an earthquake in the city.
There was a huge tectonic crack along the line and all
the sky-scrapers at positions satisfying the inequality
simply disappeared.
The city has now become a Finity City with only a finite number of sky-scrapers.
But exactly how many?
The only line of input contains three space-separated positive integers ,
,
.
They are bounded as follows:
,
.
Your program should output exactly one integer: the number of sky-scrapers in the Finity City.
For the input data:
3 4 13
the correct result is:
12
Task author: Jakub Pawlewicz.