链接:点我输入顺序又反了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define MOD 100000000710 const int ...
分类:
其他好文 时间:
2015-07-11 10:28:05
阅读次数:
82
题目大意:求∑Nn=1∑Mm=1∑m?1k=0?nk+xm? mod 998244353\sum_{n=1}^N\sum_{m=1}^M\sum_{k=0}^{m-1}\lfloor\frac{nk+x}m\rfloor\ mod\ 998244353假设nn和mm都已经确定了,现在要求这坨玩应:
∑m?1k=0?nk+xm?\sum_{k=0}^{m-1}\lfloor\frac{nk+x}m\...
分类:
其他好文 时间:
2015-07-10 09:39:51
阅读次数:
270
Windows下Apache的优化(2012-06-02 13:00:35)转载▼(1)首选查看apache的工作模式windows下的查看apache的工作模式命令:httpd -l如果列出mod_win32.c,则表示是 win32.c 工作方式。 列出的全部内容如下所示:core.cmod_w...
题意:相当于问区间内有多少数满足 X%(∑xi)==0。∑xi 是数字X的数位和。
做法:因为最多9位数,所以可以枚举∑xi,最大为81。 然后就是数位dp了。
sum是数位和,nwmod是取模结果,mod 是枚举的模
当数位和sum==mod而且,nwmod最后==0,成立计数。...
分类:
其他好文 时间:
2015-07-09 16:17:14
阅读次数:
126
用二分,使复杂度由 O(n) 变为 O(logn)
#include
#include
using namespace std;
/// (b^n)mod m; (a*b mod m) = (a mod m)*(b mod m)mod m O(log n)
/// (b^n)mod m; (a - b ) mod m =( (a mod m)-(b mod m) ...
分类:
其他好文 时间:
2015-07-09 16:13:37
阅读次数:
100
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INTpublic class Solution { //本题很多细节需要考虑: ...
分类:
其他好文 时间:
2015-07-09 00:11:06
阅读次数:
124
参考:http://bbs.06climate.com/forum.php?mod=viewthread&tid=52301.下载IDL8.1和证书 下载地址:http://yunpan.cn/ccAIDdtMPi6EP 访问密码 fb002.将license_98172-33.dat中的计算机名....
概要相关模块相关指令mod_aliasmod_cgiAddHandlerOptionsScriptAliasCGI(公共网关接口[Common Gateway Interface])定义了网站服务器与外部内容协商程序之间交互的方法,通常是指CGI程序或者CGI脚本,是在网站上实现动态页面的最简单而常...
分类:
Web程序 时间:
2015-07-08 18:13:45
阅读次数:
144
筛素数void shai()
{
no[1]=true;no[0]=true;
for(int i=2;i<=r;i++)
{
if(!no[i])
p[++p[0]]=i;
int j=1,t=i*p[1];
while(j<=p[0] && t<=r)
{
no...
分类:
其他好文 时间:
2015-07-08 10:58:41
阅读次数:
162
Divide Two Integers
Divide two integers without using multiplication, division and mod operator.
If it is overflow, return MAX_INT.
思路:这个题算法上不是很难,但是通过率相当低,只有15%,果然,自己在写完之后,各种出错,而且错误不是算法上...
分类:
其他好文 时间:
2015-07-08 09:38:07
阅读次数:
115