一、ReactDOM.render 创建ReactRoot,并且根据情况调用root.legacy_renderSubtreeIntoContainer或者root.render,前者是遗留的 API 将来应该会删除,根据ReactDOM.render的调用情况也可以发现parentComponen ...
分类:
其他好文 时间:
2019-10-20 23:57:34
阅读次数:
167
A 母牛的故事 题目大意:第一年有一头母牛,每年年初母牛生小母牛,小母牛第四个年头可以开始生小牛。 问第n年有多少头牛。 题解: (1)列出前几项来找规律(2)第i年牛的数量=第i-1年牛的数量+(新出生的牛的数量=第i-3年牛的数量) 代码: B Cow Bowling 7 3 8 8 1 0 2 ...
分类:
其他好文 时间:
2019-10-19 00:17:33
阅读次数:
64
题目描述 Bessie is running out of money and is searching for jobs. Farmer John knows this and wants the cows to travel around so he has imposed a rule tha ...
分类:
其他好文 时间:
2019-10-16 00:21:10
阅读次数:
78
题目链接: "POJ 3268" Description One cow from each of $N$ farms $(1 ≤ N ≤ 1000)$ conveniently numbered $1..N$ is going to attend the big cow party to be h ...
分类:
其他好文 时间:
2019-10-13 20:25:54
阅读次数:
90
问题 A: 毛一琛/$cow$ $subsets$ 时间限制: 1 Sec 内存限制: 512 MB 题面 题面谢绝公开。 题解 题名貌似是个大神??看起来像是签到题然后就死了。 首先$O(3^n)$算法显然。也显然过不去$20$的测试点。 正解是赫赫有名的$meet$ $in$ $the$ $mi ...
分类:
其他好文 时间:
2019-10-13 17:07:41
阅读次数:
93
1.MySQL索引中索引的存储类型 BTREE、HASH 2.索引是在存储引擎中实现的,不同的存储引擎会使用不同的索引 MyISAM、InnoDB存储引擎:只支持BTREE索引 MEMORY/HEAP存储引擎:支持HASH和BTREE索引。 3.在已经存在的表上创建索引 TABLE STUDENT ...
分类:
数据库 时间:
2019-10-13 00:52:14
阅读次数:
123
链接: https://vjudge.net/problem/POJ 3616 题意: Bessie is such a hard working cow. In fact, she is so focused on maximizing her productivity that she deci ...
分类:
其他好文 时间:
2019-10-12 22:37:25
阅读次数:
86
索引 * 多个单列索引 ,只能使用其中的一个索引 1、btree索引的常见误区 在where条件常用的列都加上索引 例:where cat_id=3 and price>100; //查询第三个栏目,100元以上的商品 误:cat_id上和price尚都加上索引 错:只能用上cat_id或price ...
分类:
其他好文 时间:
2019-10-11 18:12:07
阅读次数:
77
需学习 近期优先 超联赛 1.字符串相关:KMP、AC自动机 2.Pufer序列、卡特兰数 3.Tarjan 4.crt、excrt 5.莫比乌斯反演(YY的gcd) 6.高斯消元及解的判断 7.网络流 8.反悔贪心(cow) 9.二维线段树 10.CDQ解三维偏序 ...
分类:
其他好文 时间:
2019-10-10 22:34:20
阅读次数:
101
题意 给定$N\leq1000$个单词,每个单词有两个属性:长度$s_i$,音节$c_i$ 奶牛Bessie想要创作一首有$M\leq 10^5$行的诗歌,其中,对于每一行规定其韵脚为$C$($C$为一大写字母),其长度为$K\leq 1000$ 也就是说,组成第$i$行的单词的长度之和为$K$,并 ...
分类:
其他好文 时间:
2019-10-10 22:14:45
阅读次数:
93