题目链接:http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5840 Time Limit: 1 Second Memory Limit: 65536 KB If we define $f(0)=1,f(1)=0,f( ...
分类:
其他好文 时间:
2018-11-10 23:57:56
阅读次数:
483
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4061 题意:定义一个长度为 n 的序列 a1,a2,..,an 和长度为 m 的序列 b1,b2,..,bm 所构成的新序列 c 为 a1b1,a1b2,...., ...
分类:
其他好文 时间:
2018-11-10 21:21:00
阅读次数:
254
Plants vs. Zombies http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5819 BaoBao and DreamGrid are playing the game Plants vs. Zombies. In th ...
分类:
其他好文 时间:
2018-11-10 18:00:43
阅读次数:
354
题目链接:ZOJ--1610-Count the Colors 要注意 更新区间的时候 如果是 1 3 1 1 2 2 3 4 3 这种情况的时候应该是三种颜色 要注意 0 ...
分类:
其他好文 时间:
2018-11-04 14:03:09
阅读次数:
210
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2314 题目大意: 给n个点,及m根pipe,每根pipe用来流躺液体的,单向的,每时每刻每根pipe流进来的物质要等于流出去的物质,要使得m条pipe组成一个循环体 ...
分类:
其他好文 时间:
2018-11-01 22:28:22
阅读次数:
265
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=4045 题意:给一棵树。这棵树有n个节点,问你这个图能不能分成k个分块。这个分块内所有的节点都至少与一个该块中的其他节点有一条边相连。 题目分析:由于是无根树,所以可以随便选取 ...
分类:
其他好文 时间:
2018-11-01 13:43:56
阅读次数:
184
一些题目的代码被网站吞了…… Problem B. Red Black Tree http://acm.zju.edu.cn/onlinejudge/searchProblem.do?contestId=1&titlefrom=0&authorfrom=0&sourcefrom=0&query=Th ...
分类:
其他好文 时间:
2018-10-30 00:57:49
阅读次数:
300
1. 安装(可以用 brew 安装) sudo brew install nginx 2. 查看 nginx 版本 nginx -v3. 启动 nginx sudo nginx 1也可以使用下面的命令启动,但是配置文件nginx.conf修改后用这个命令执行不生效,故不建议使用: sudo brew ...
分类:
系统相关 时间:
2018-10-18 19:23:44
阅读次数:
260
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1406 The Head Elder of the tropical island of Lagrishan has a problem. A burst of fo ...
分类:
其他好文 时间:
2018-09-26 16:11:57
阅读次数:
182
官网下载Ubuntu镜像安装,交互模式需要手动配置很多东西,为了快速安装,特制作自动安装镜像,方便安装系统。 制作方法: 下载官网镜像iso文件:ubuntu-16.04.4-server-amd64.iso (http://mirrors.zju.edu.cn/ubuntu-releases/16 ...
分类:
系统相关 时间:
2018-09-08 23:33:17
阅读次数:
1339