上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 线段树 1:单点修改,区间查询 代码: cpp / Segment Tree 1 Au: GG / include include include include include include include define ll long long using namespace std; con 阅读全文
posted @ 2018-02-28 10:55 greyqz 阅读(150) 评论(0) 推荐(1) 编辑
摘要: Regular: ~~problem/10 cross // blog/59~~ problem/48 lcastat problem/49 letsandgo ~~problem/36 tree~~ problem/62 binary problem/64 swap problem/81 plan 阅读全文
posted @ 2017-10-22 15:04 greyqz 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 火柴排队 cpp / 火柴排队 Au: GG / include include include include include include include using namespace std; typedef long long ll; const int N = 200000 + 3; 阅读全文
posted @ 2017-10-20 11:32 greyqz 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 更多 STL 数据结构请阅读 "NOIp 数据结构专题总结" (STL structure 章节) std::map Definition: In a map, the key values are generally used to sort and uniquely identify the e 阅读全文
posted @ 2017-10-19 10:41 greyqz 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ``` cpp / Least Common Ancestors Au: Small_Ash / include using namespace std; const int N = 500005, M = 1000005, MM = 20; int n, m, s, d[N], l[N], f[M 阅读全文
posted @ 2017-10-18 21:00 greyqz 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Basic knowledge $$ C_n^m=\frac{n!}{m!(n m)!} $$ 快速幂 For more specific explanation, see "Link " . 组合数 同余方程 $$ ax \equiv 1 \pmod b $$ $$ ax + by = 1 $$ 阅读全文
posted @ 2017-10-18 10:57 greyqz 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 很菜。。。我还是太蒟蒻了。 d 老师太强了。。。 应该能有七十几分 初赛稳了 Update: 五十几分。。。 阅读全文
posted @ 2017-10-14 21:45 greyqz 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 数字的读入优化: cpp / I/O Au: GG / include include include include include include include include using namespace std; int read() { int sum = 0; char c = ge 阅读全文
posted @ 2017-09-20 10:40 greyqz 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Luogu1064 金明的预算方案 题目描述 金明今天很开心,家里购置的新房就要领钥匙了,新房里有一间金明自己专用的很宽敞的房间。更让他高兴的是,妈妈昨天对他说:“你的房间需要购买哪些物品,怎么布置,你说了算,只要不超过N元钱就行”。今天一早,金明就开始做预算了,他把想买的物品分为两类:主件与附件, 阅读全文
posted @ 2017-09-15 23:57 greyqz 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 字符串使用方法整理 系列: "字符串(一):char 数组" "字符串(二):string" 1. 声明 如下是一个例子( 表示 表达式等价 ): 2. 字符和字符串 2.1 字符 是字符,也是 0~127 的无符号整数。通常能用一个 表示的被称为 ASCII 编码。 字符串是以 结尾的连续地址。~ 阅读全文
posted @ 2017-08-12 10:18 greyqz 阅读(6631) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页