unsigned int 0~4294967295 (0~232)int 2147483648~2147483647 unsigned long 0~4294967295long 2147483648~2147483647long long的最大值:9223372036854775807long l ...
分类:
其他好文 时间:
2017-07-27 23:32:55
阅读次数:
242
http://acm.hdu.edu.cn/showproblem.php?pid=1085 题意:1元。2元。5元的硬币分别有num[1],num[2],num[3]个。问用这些硬币不能组合成的最小钱数。 继续母函数。 有两个注意的地方: 对c2[]初始化的同一时候也要对c1[]初始化。 最后枚举 ...
分类:
其他好文 时间:
2017-07-27 20:26:18
阅读次数:
164
首先声明转自 http://www.cnblogs.com/ChenDinghao/p/6480937.html 首先来看一看int、long、long long的取值范围 int 所占字节数为:4 表示范围为:-2147483648~2147483647 short int 所占字节数为:2 表示 ...
分类:
其他好文 时间:
2017-07-26 11:39:15
阅读次数:
111
longint(long):-2^31~2^31 -1 2^31: 2.1*10^9 十位数,首位是2,次位是1 word(unsigned long):0~2^32 2^32=2^31 * 2: 4.2*10^9 十位数,首位是4,次位是2 int64(long long):-2^63~2^63 ...
分类:
其他好文 时间:
2017-07-25 10:33:34
阅读次数:
169
import ( "fmt" "time" "github.com/astaxie/beego" "github.com/bitly/go-simplejson" ) type Datas struct { data struct { Id int64 `json:"id"` Userid stri ...
分类:
Web程序 时间:
2017-07-18 10:16:26
阅读次数:
141
double t0,t1; __int64 Freq = 0; __int64 Count = 0; if (QueryPerformanceFrequency((LARGE_INTEGER*)&Freq)&& Freq > 0&& Qu... ...
分类:
其他好文 时间:
2017-07-12 13:38:31
阅读次数:
153
233 Matrix Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 749 Accepted Submission(s): 453 Prob ...
分类:
其他好文 时间:
2017-07-10 23:39:53
阅读次数:
281
理由: 因为long类型是 System.Int64 (长整型,占 8 字节,表示 64 位整数,范围大约 -(10 的 19) 次方 到 10 的 19 次方) 而long BinaryReader.ReadInt64()方法是从当前流中读取八字节有符号整数,并使流的当前位置向前移动8个字节。 八 ...
HDU4500 直接模拟 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #include <string> #include< ...
分类:
其他好文 时间:
2017-07-02 19:43:29
阅读次数:
182
最近项目在进行实时排序时需要有个算法能够快速的进行排序,进行一番测试及考量。现采用set容器,然后存放结构体的方式。 结构体如下所示: 1 struct MatchData 2 { 3 uint32 m_score; 4 int64 m_userid; 5 uint32 m_medal; 6 str ...
分类:
编程语言 时间:
2017-06-26 12:43:27
阅读次数:
171