![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
费马小定理
pioneer 1
如你所说,成为传奇。
展开
-
H - Rng HDU - 6574
传送门 Problem Description Avin is studying how to synthesize data. Given an integer n, he constructs an interval using the following method: he first generates a integer r between 1 and n (both inclus...原创 2019-11-15 21:21:06 · 355 阅读 · 0 评论 -
小L的取膜算式
题目链接 题目描述 小L想请你帮忙计算一下这个式子的结果 (a+b)pMOD p,其中p是质数。 输入 多组数据 第一行一个T表示数据组数 接下来T行,每行3个正整数a, b, p且保证p是质数 ,输入数据都是long long范围内的正整数。特别的: p <= 2^62 输出 对于每一组输入数据,输出正确结果 样例输入Copy 1 1 2 3 样例...原创 2019-08-13 18:45:55 · 113 阅读 · 0 评论