01 2021 档案
摘要:procedurekaratsuba(num1,num2) if(num1<10)or(num2<10) returnnum1*num2 /*calculatesthesizeofthenumbers*/ m=max(size(num1),size(num2)) m2=m/2 high1,low1=
阅读全文
摘要:http://blog.miskcoo.com/2015/05/polynomial-inverse
阅读全文
摘要:https://www.luogu.com.cn/blog/command-block/fft-xue-xi-bi-ji http://blog.miskcoo.com/2015/04/polynomial-multiplication-and-fast-fourier-transform #inc
阅读全文
摘要:https://www.cnblogs.com/Xing-Ling/p/10886957.html
阅读全文
摘要:[Ahoi2009]Seq 维护序列seqDescription老师交给小可可一个维护数列的任务,现在小可可希望你来帮他完成。 有长为N的数列,不妨设为a1,a2,…,aN 。有如下三种操作形式: (1)把数列中的一段数全部乘一个值; (2)把数列中的一段数全部加一个值; (3)询问数列中的一段数的
阅读全文
摘要:https://www.cnblogs.com/Ishtar/p/10010819.html
阅读全文
摘要:当操作符为‘I’时,表示有一个MM报名,后面接着一个整数,H表示身高,两个浮点数,A表示活泼度,L表示缘分值。 (100<=H<=200, 0.0<=A,L<=100.0) 当操作符为‘Q’时,后面接着四个浮点数,H1,H2表示身高区间,A1,A2表示活泼度区间,输出符合身高和活泼度要求的MM中的
阅读全文
摘要:(树套树,二维树状数组,二维线段树) Given an N*N matrix A, whose elements are either 0 or 1. A[i, j] means the number in the i-th row and j-th column. Initially we hav
阅读全文
摘要:https://www.cnblogs.com/Xing-Ling/p/11715666.html https://www.cnblogs.com/Xing-Ling/p/11749174.html 分块 https://www.cnblogs.com/Xing-Ling/p/11749114.ht
阅读全文
摘要:树状数组代码: //前缀和 int query(int x){ int ans = 0; for(; x; x -= x& -x) ans += C[x]; return ans; } //单点修改 void modify(int x, int y){ for(; x <= N; x += x &
阅读全文

浙公网安备 33010602011771号