
其他
hxc2101
这个作者很懒,什么都没留下…
展开
-
数据类型的取值范围
数据类型的取值范围 数据类型 取值范围 char -128 ~ 127 (1 Byte,大约3位) short -32768 ~ 32767 (2 Bytes,大约五位) unsigned short 0 ~ 65536 (2 Bytes,大约五位) int -2147483648 ~ 2147483647 (4 Bytes,大约十位) unsi...转载 2018-08-15 21:07:02 · 386 阅读 · 0 评论 -
输入输出外挂
简化版:(使用时需加上 IO:: ,使用实例) namespace IO{ #define BUF_SIZE 100000 #define OUT_SIZE 100000 #define ll long long //fread->read bool IOerror=0; inline char nc(){ static c...原创 2018-08-14 02:23:20 · 168 阅读 · 0 评论 -
memset
可初始化0,-1 (可初始化数组 或 结构体等)(因为是对每个字节操作,char 只有一个字节 所以初始化很方便) 初始化最大值 inf:memset(a,0x3f,sizeof(a)) (即把每个字节变为0x3f 所以int 或 long long都是这个写法) #include <bits/stdc++.h> #define mst(a,val) memset(a,val,s...原创 2018-08-21 16:03:20 · 890 阅读 · 0 评论