#P2613. 【模板】有理数取余
【模板】有理数取余
Description
Given a rational number , compute .
This value is defined as the solution to .
Input Format
There are two lines in total.
The first line contains an integer .
The second line contains an integer .
Output Format
Output a single integer, representing the result after taking modulo. If there is no solution, output Angry!.
233
666
18595654
Hint
For all testdata, it is guaranteed that , , and are not both multiples of .
Translated by ChatGPT 5
京公网安备 11011102002149号