乘法逆元
bao___zi
ACM 弱鸡一枚
What this era lacks is not the person who is perfect but the person who is with virtue, justice, courage and compassion.
展开
-
ZOJ 4712 Modular Inverse (乘法逆元)
The modular modular multiplicative inverse of an integer a modulo m is an integer x such that a-1≡x (mod m). This is equivalent to ax≡1 (mod m). Input There are multiple test cases. The first line o...原创 2018-08-14 15:17:59 · 229 阅读 · 0 评论 -
ZOJ 3593 One Person Game (乘法逆元)
There is an interesting and simple one person game. Suppose there is a number axis under your feet. You are at point A at first and your aim is point B. There are 6 kinds of operations you can perform...原创 2018-08-14 18:54:28 · 192 阅读 · 0 评论