欧几里得算法
踢到火星
我是我生命的主宰
展开
-
D - Revenge of GCD
In mathematics, the greatest common divisor (gcd), also known as the greatest common factor (gcf), highest common factor (hcf), or greatest common measure (gcm), of two or more integers (when at least...原创 2018-07-24 15:29:12 · 334 阅读 · 0 评论 -
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-07-24 15:51:54 · 302 阅读 · 0 评论 -
C Looooops
A Compiler Mystery: We are given a C-language style for loop of type for (variable = A; variable != B; variable += C) statement; I.e., a loop which starts by setting variable to value A and wh...原创 2018-07-29 12:56:41 · 216 阅读 · 0 评论