In the event of technical difficulties with Szkopuł, please contact us via email at [email protected].
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.
Byteman is going for a car trip around Byteland, but he is unfortunately unable to buy a map of the country. His friends told him about some properties of the bytean road network:
Write a program that:
The first and only line of the input contains three integers
,
and
(
,
,
,
is a prime number), separated with single spaces.
The first and only line of output should contain a single integer
- the remainder of the division by of the number of different
plans that are consistent with conditions known to Byteman.
For the input data:
6 3 13
the correct result is:
2
Task author: Jakub Radoszewski.