摘要:
Description In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers: In this problem, you are given n, yo 阅读全文
摘要:
Light OJ 1078 题意: 给你两个整数,n和m,问有最少有几个m组成的数能被n整除。。。。。不用同余会超时。。。。 思路:同余定理: (A + B) mod M = ( A mod M + B mod M ) mod M(A * B) mod M = ((A mod M) *( B mod 阅读全文