Euler theorem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others)Total Submission(s): 742 Accepted Submission(s): 584 P ...
分类:
其他好文 时间:
2017-09-23 12:19:22
阅读次数:
197
2017-09-22 21:59:43 writer:pprp HazelFan is given two positive integers a,ba,b, and he wants to calculate amodbamodb. But now he forgets the value of ...
分类:
其他好文 时间:
2017-09-23 00:13:09
阅读次数:
181
The CAP theorem asserts that any networked shared-data system can have only two of three desirable properties. However, by explicitly handling parti... ...
分类:
其他好文 时间:
2017-09-08 16:25:32
阅读次数:
215
题目链接:http://www.spoj.com/problems/DCEPC11B/ 题目大意:求N!对P取余的结果。P是素数,并且abs(N-P)<=1000。 解题思路:wiki-费马小定理: Fermat's little theorem states that if p is a prim ...
分类:
其他好文 时间:
2017-08-20 14:56:22
阅读次数:
249
直接打表找规律 HazelFan is given two positive integers a,ba,b, and he wants to calculate amodbamodb. But now he forgets the value of bb and only remember the ...
分类:
其他好文 时间:
2017-08-19 10:58:51
阅读次数:
171
Problem Description HazelFan is given two positive integers a,b, and he wants to calculate amodb. But now he forgets the value of b and only remember ...
分类:
其他好文 时间:
2017-08-16 11:30:09
阅读次数:
181
Chinese remainder theorem again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3174 Accepted Su ...
分类:
其他好文 时间:
2017-08-12 22:31:36
阅读次数:
174
中国剩余定理: x ≡ a1 (% m1) x ≡ a2 (% m2) . . . x ≡ an (% mn) m1,m2...mn 互质。我们求里面的x,就会用到中国剩余定理。首先将 x 看成 s ,则 s ≡ a1 (% m1) 1式 s + m1 * y = a1 另 M = m1 * m2 ...
分类:
其他好文 时间:
2017-08-08 19:43:53
阅读次数:
125
In mathematics, the four color theorem, or the four color map theorem, states that, given any separation of a plane into contiguous regions, producing ...
分类:
其他好文 时间:
2017-08-02 11:09:46
阅读次数:
224
题意: 给定n,AA 以下n个数m1,m2···mn 则有n条方程 res % m1 = m1-AA res % m2 = m2-AA 问res的最小值 直接上剩余定理,嘿嘿 #include<stdio.h> #include<string.h> #include<iostream> #inclu ...
分类:
其他好文 时间:
2017-06-29 15:17:41
阅读次数:
135