先放知识点: 莫比乌斯反演 卢卡斯定理求组合数 乘法逆元 快速幂取模GCD of Sequence Alice is playing a game with Bob.Alice shows N integers a 1, a 2, …, a N, and M, K. She says each integ......
Problem Description Now given two kinds of coins A and B,which satisfy that GCD(A,B)=1.Here you can assume that there are enough coins for both kinds.Please ca...
Problem Descriptionpeople in USSS love math very much, and there is a famous math problem give you two integers n,a,you are required to find 2 integers b,c su...
DescriptionEverybody in the Prime Land is using a prime base number system. In this system, each positive integer x is represented as follows: Let {pi}i=0,1,2,...