同余
文章平均质量分 88
nike0good
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
The 1st Universal Cup. Stage 8: Slovenia.(Skills in Pills-dp)
Problem K. Skills in Pills Input file: standard input Output file: standard output Time limit: 1 second Memory limit: 256 megabytes An unnamed protagonist of this task received amazing e-mail offers for wondrous pills that will enhance their cognitive and原创 2023-03-21 11:39:09 · 599 阅读 · 2 评论 -
POJ 3844(同余)
果断同余…… D[j]-D[i] mod k =0 D[j]=D[i] 求有多少相等数对,用队列O(n) Program P3844; const maxn=50000; maxd=1000000; var ans,t,f,n,i,j:longint; d:array[0..maxn] of longint; procedure qsort(l,r:lo原创 2012-09-23 16:04:44 · 1442 阅读 · 0 评论 -
CH BR13数学(啥?-a^b≡a^b mod phi(p)+phi(p)(mod p)(b>=phi(p))公式)
啥? Beta Round #13 (数学专场) 背景 有人写了一个RSA加密给我玩。 描述 我赌5毛前面两题的内容也就开头几句话平时会用到。 还是做点具体的东西吧。 求c^d Mod N 输入格式 三个用空格隔开的整数c,d,N 输出格式 一个整数表示答案 样例输入 1 2 6 样例输出 1 数据范围与约定原创 2013-09-13 17:40:15 · 1897 阅读 · 0 评论
分享