class Board extends React.Component { renderSquare(i) { return <Square value={i} />; } } class Square extends React.Component { render() { return ( <b ...
分类:
其他好文 时间:
2020-06-08 22:10:30
阅读次数:
107
前端由三部分组成: HTML(标签)——CSS(美化,修饰)——JS(执行指令) HTML(超文本标记语言,Hypertext Markup Language):是一种用于创建网页的标记语言。 本质上为根据浏览器可识别的规则,我们按照规则写网页,浏览器按照规则渲染网页。 网页扩展名:.html或者. ...
分类:
Web程序 时间:
2020-06-07 19:51:12
阅读次数:
104
题意 有一个 n×m 的广场,其中一部分要铺地砖,地砖有两种, 1 × 1 和 1×2 的,后者只能横着铺,其中, 1 × 1的单价为 x , 1 × 2 的单价为 y , 输入这个广场,"."表示要铺地砖,求最少花费。注意,地砖不可重合,也不可覆盖在已铺地砖区域。 思路 这显然是贪心,分别计算全铺 ...
分类:
其他好文 时间:
2020-06-07 10:55:12
阅读次数:
68
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1848 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 19:00:21
阅读次数:
75
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1527 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 18:18:17
阅读次数:
60
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1521 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 13:06:06
阅读次数:
56
题目链接:https://vjudge.net/problem/HDU-1074 Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher ...
分类:
其他好文 时间:
2020-06-05 13:08:02
阅读次数:
72
\[ \texttt{Description} \] 有一个名为 233 的矩阵 a。 对于第一行,有 \(a_{0, 1} = 233\),\(a_{0, 2} = 2333\),\(a_{0,3} = 23333\) ... 对于 \(\forall i, j \neq 0\),有 \(a_{i ...
分类:
其他好文 时间:
2020-06-04 21:37:22
阅读次数:
59
题目链接 #题目大意 有n个编号为0~n的物品,并且有两个操作,分别是将两个物品合并在一个集合里和把一个物品从集合里取出来,问最后有多少个集合。 #解题思路 本题主要是如何把物品从集合中取出,可以设立一个与原物品编号不同的点作为辅助点。这样挂在同一个辅助点的物品都是属于同一个集合的,而挂在不同辅助点 ...
分类:
其他好文 时间:
2020-06-04 14:01:12
阅读次数:
52
HDU-5608(杜教筛) 题意:\(G(n)=n^2?3n+2=\sum_{d|n}F(d)\),求$\sum_1^nF(i)$ 反演得到:\(F(n)=\sum_{d|n}\mu(d)G(\frac{n}{d})\) 则$\sum_1^nF(i)=\sum_i\sum_{d|i}\mu(d)G( ...
分类:
其他好文 时间:
2020-06-01 20:47:19
阅读次数:
44