基本数据类型 类型 关键字 长度【bits】 取值范围 说明 包装器类型 整型 byte 8(1字节) [-128,27] 存储字节数据(常用) Byte short 16(2字节) [-2^15,2^15-1] Short int 32(4字节) [-2^31,2^31-1] 存储普通整数(常用) ...
分类:
编程语言 时间:
2016-12-05 02:36:40
阅读次数:
203
学习了一下平面图剖分的姿势,orz cbh 每次只要随便选择一条边,然后不停尽量向左转就行 #include <bits/stdc++.h> #define N 1300000 #define M 5000013 #define LL long long #define pb push_back u ...
分类:
其他好文 时间:
2016-12-04 00:48:00
阅读次数:
179
题解: 一道很基础的DP题目。想清楚状态的表示就可以直接写了 代码: #include<bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define se second #define fs ...
分类:
其他好文 时间:
2016-12-03 01:55:19
阅读次数:
194
(压根就没做几道题,无地自容QAQ) gym101138 J 直接上树链剖分+线段树,注意处理好端点问题(其实有(Q+N)logN的做法) 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 str ...
分类:
其他好文 时间:
2016-12-02 01:36:27
阅读次数:
189
这几天学校女生节,挺累的,感觉还是挺好玩的,前几天看了一下最短路,Bellman-fort算法果然比较厉害,今天又参考了刘汝佳的两本书,有了一点新的认识。 废话不说,先上代码: #include <bits/stdc++.h> using namespace std; const int INF = ...
分类:
其他好文 时间:
2016-12-01 21:48:54
阅读次数:
247
Computer Systems A Programmer's Perspective Second Edition BusesRunning throughout the system is a collection of electrical conduits called busesthat ...
分类:
其他好文 时间:
2016-12-01 14:49:47
阅读次数:
180
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2016-11-30 02:31:27
阅读次数:
178
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2016-11-26 14:32:09
阅读次数:
160
在传输单位的写法上,B 和 b 分别代表 Bytes 和 bits,两者的定义是不同的,具体换算公式如下:1 Byte = 8 bits 1 Kb = 1024 bits 1 KB = 1024 bytes 1 Mb = 1024 Kb 1 MB = 1024 KB 宽带最高下载理论值 1.5 M ...
分类:
其他好文 时间:
2016-11-26 13:55:54
阅读次数:
194
1、UVA103 嵌套n维空间 DAG模型记忆化搜索,或者 最长上升子序列。 2、dp[i]=max( dp[j]+1),(第i个小于第j个) (1) //DAG模型记忆化搜索 #include<bits/stdc++.h> using namespace std; #pragma comment( ...
分类:
其他好文 时间:
2016-11-20 07:06:53
阅读次数:
235