【模板】有理数取余
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给出一个有理数 ,求 的值。
这个值被定义为 的解。
输入格式
一共两行。
第一行,一个整数 。
第二行,一个整数 。
输出格式
一个整数,代表求余后的结果。如果无解,输出 Angry!
。
233
666
18595654
提示
对于所有数据,保证 ,,且 不同时是 的倍数。