![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
同余定理
楚江枫
不忘初心,方得始终
展开
-
【Light oj 1078】
If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequence of only a digit. Now you are given the number and the only allowable digit, you should report th原创 2016-07-31 10:42:47 · 367 阅读 · 0 评论 -
【 同 余 定 理 (补充)】
分三类:口诀套用,化余为一,其他 “差同减差,和同加和,余同取余,最小公倍加”这是同余问题的口诀。同余公式也有许多我们常见的定律,比如相等律,结合律,交换律,传递律….如下面的表示:1)a≡a(mod d)2)a≡b(mod d)→b≡a(mod d)3)(a≡b(mod d),b≡c(mod d))→a≡c(mod d)如果a≡x(mod d),b≡m(mod d),则4)a+b≡x+m (mo转载 2016-07-31 11:16:08 · 5232 阅读 · 0 评论 -
【Codeforces 822D. My pretty girl Noora】+ 数论
D. My pretty girl Noora time limit per test1.5 seconds memory limit per test256 megabytes inputstandard input outputstandard output In Pavlopolis University where Noora studies it was decided to h原创 2017-07-19 10:48:33 · 411 阅读 · 0 评论