码迷,mamicode.com
首页 >  
搜索关键字:long clolumn    ( 19148个结果
Linux2.6内核实现的是NPTL
NPTL是一个1×1的线程模型,即一个线程对于一个操作系统的调度进程,优点是非常简单。而其他一些操作系统比如Solaris则是MxN的,M对应创建的线程数,N对应操作系统可以运行的实体。(Ntgid;957 }1100 asmlinkage long sys_gettid(void)1101 {11...
分类:系统相关   时间:2014-07-24 21:42:02    阅读次数:366
HDU 1003 Max Sum
同上题一样,求连续子序列的最大和而且比上题还要简单一些,用不到long long了直接水过 1 //#define LOCAL 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 10000...
分类:其他好文   时间:2014-07-24 14:47:45    阅读次数:271
H-index因子
Problem Description Paper quality and quantity have long been used to measure a research's scientific productivity and scientific impact. Citation, which is the total times a paper has been cited, is...
分类:其他好文   时间:2014-07-24 11:36:52    阅读次数:260
HDU 1325 Is It A Tree? 并查集
#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; const int maxn =10000+5; const int ma...
分类:其他好文   时间:2014-07-24 10:45:34    阅读次数:230
HDU 4737 A Bit Fun
题意:定义F(i,j)为数组a中从ai到aj的或运算,求使F(i,j)#include#include#include#include#include#include#define ll long long#define len 31using namespace std;int num[32];i...
分类:其他好文   时间:2014-07-24 10:09:13    阅读次数:239
打印从1到最大的n位数
题目:输入数值n,按顺序打印从1到最大的n位数,例如输入n=3,则从1,2,3,一直打印到999陷阱:若使用循环遍历 1- 999...9 并依次输出,当位数n过大时,无论将其存入int或long或long long都会溢出,故使用字符串来模拟数字加法#include #include #inclu...
分类:其他好文   时间:2014-07-24 05:05:18    阅读次数:187
Lowbit Sum 规律
Lowbit SumTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Descriptionlong long ans = 0;for(int i = 1;...
分类:其他好文   时间:2014-07-23 22:22:27    阅读次数:506
MSP430G2553之timerA产生PWM
#include #define CPU_F ((double)12000000)//cpu frequency12000000#define delay_us(x) __delay_cycles((long)(CPU_F*(double)x/1000000.0))#define delay_ms(...
分类:其他好文   时间:2014-07-23 20:53:15    阅读次数:221
byte[]数组和int之间的转换
1、int与byte[]之间的转换(类似的byte short,long型) /** * 将int数值转换为占四个字节的byte数组,本方法适用于(低位在前,高位在后)的顺序。 和bytesToInt()配套使用 * @param value * 要...
分类:其他好文   时间:2014-07-23 20:35:55    阅读次数:220
计算两个String 类型的时间相关几个月
/** * 返回两个时间段相隔几个月 * @param date1 * @param date2 * @return * @throws ParseException * @throws ParseException */ public static long getMonth(String startDate, String endDate) throws P...
分类:其他好文   时间:2014-07-23 18:07:06    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!