码迷,mamicode.com
首页 >  
搜索关键字:mod    ( 18094个结果
浅析linux内核中timer定时器的生成和sofirq软中断调用流程(转自http://blog.chinaunix.net/uid-20564848-id-73480.html)
浅析linux内核中timer定时器的生成和sofirq软中断调用流程mod_timer添加的定时器timer在内核的软中断中发生调用,__run_timers会spin_lock_irq(&base->lock);禁止cpu中断,所以我们的timer回调处理函数handler工作在irq关闭的环境...
分类:Web程序   时间:2015-03-31 19:38:22    阅读次数:225
hihocoder1032(最长回文子串manacher算法)
题目连接:点击打开链接 解题思路: manacher算法的模板题。 完整代码: #include #include #include #include #include #include #include #include using namespace std; typedef unsigned long long LL; const int MOD = ...
分类:编程语言   时间:2015-03-31 18:09:37    阅读次数:176
HDU3068(最长回文子串manacher算法)
题目连接:点击打开链接 解题思路: manacher算法模板题。 完整代码: #include #include #include #include #include #include #include #include using namespace std; typedef unsigned long long LL; const int MOD = i...
分类:编程语言   时间:2015-03-31 18:05:25    阅读次数:179
lightoj 1297(三分)
传送门:Largest Box题意:长度为L宽度为W的纸四个角去掉x*x的正方形,然后形成一个长方体,问能组成长方体的最大体积为多少。分析:三分x求最值。#include #include #include #include #define N 100010#define mod 100000000...
分类:其他好文   时间:2015-03-31 17:19:41    阅读次数:122
apache url rewrite笔记
什么是mod_rewrite?mod_rewrite是apache一个允许服务器端对请求url做修改的模块。入端url将和一系列的rule来比对。这些rule包含一个正则表达式以便检测每个特别的模式。如果在url中检测到该模式,并且适当的预设条件满足,name该模式将被一个预设的字符串或者行为所.....
分类:Web程序   时间:2015-03-31 00:48:39    阅读次数:113
关于显示gif的一些方法与讨论
http://www.2cto.com/kf/201404/292468.htmlhttp://www.eoeandroid.com/forum.php?mod=viewthread&tid=333209&page=1#pid4001350https://github.com/nemothekid/...
分类:其他好文   时间:2015-03-30 20:45:08    阅读次数:120
Qt 数据库学习记录
sql_interface.h#ifndef SQL_INTERFACE_H #define SQL_INTERFACE_H class ModCat{ public: int mod_cat_id; QString name; };class SqlClass : public QObject{ Q_OBJECT private: QSqlDatabase* db;...
分类:数据库   时间:2015-03-30 14:42:57    阅读次数:185
acdream 1060 递推数 (矩阵快速幂+循环节)
链接:click here~~ 题意: 递推数 Problem Description 已知A(0) = 0 , A(1) = 1 , A(n) = 3 * A(n-1) + A(n-2) (n ≥ 2)    求 A(A(A(A(N)))) Mod (1e9 + 7) Input 第一行一个整数 T (T ≤ 10000) 代表数据组数 每组数据占一行,一个整数 n (1 ≤ n...
分类:其他好文   时间:2015-03-30 13:21:23    阅读次数:93
poj 2526 Center of symmetry 哈希查找
题意: 给n个不同的点,问是否存在一个点使得这n个点关于它两两对称。 分析: 首先确定这个对称中心的坐标,然后对每个点哈希查找它的对称点。 代码: //poj 2526 //sep9 #include using namespace std; const int maxN=10024; const int hashlen=1000023; const int mod=40013; st...
分类:其他好文   时间:2015-03-30 09:35:38    阅读次数:130
zju3547
题意:给出n(1using namespace std;#define D(x) const int MOD = (int)(1e9) + 7;const int MAX_FACTOR = 40;int n;int factor_num;long long factor[MAX_FACTOR];lo...
分类:其他好文   时间:2015-03-29 22:08:58    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!