上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 题目链接: "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 阅读全文
posted @ 2019-10-13 20:06 wuli涛涛 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 1797" Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a 阅读全文
posted @ 2019-10-12 23:07 wuli涛涛 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 下载安装想要更换的字体,这里以 Fira Code 字体为例。 Fira Code 字体的下载地址:https://github.com/tonsky/FiraCode 下载解压后安装字体,windows 可以选择 ttf 文件夹,安装里面的全部字体。 打开 VSC,点击左下角的图标,选择 Sett 阅读全文
posted @ 2019-10-12 23:05 wuli涛涛 阅读(9134) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 1797" Description Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a 阅读全文
posted @ 2019-10-12 23:05 wuli涛涛 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 2253" Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone 阅读全文
posted @ 2019-10-11 23:00 wuli涛涛 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 2387" Description Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes he 阅读全文
posted @ 2019-10-11 22:59 wuli涛涛 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 题意 给定两个字符串 $A$ 和 $B$,求 $B$ 在 $A$ 中的出现次数。 思路 这是一道 $KMP$ 的模板题。 不过 $Hash$ 是个好东西,可以用 $Hash$ 代替 $KMP$ 算法。 预处理两个字符串的哈希值,然后将 $A$ 中所有长度为 $len(B)$ 的子串的哈希值与 $B$ 阅读全文
posted @ 2019-10-10 23:03 wuli涛涛 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 比赛链接: "Codeforces Round 589 (Div. 2)" 官方题解: "Codeforces Round 589 (Div. 2) Editorial" A. Distinct Digits 题意 给定两个整数 $l$ 和 $r$,求一个 $x$ 满足 $l \le x \le r 阅读全文
posted @ 2019-10-09 22:37 wuli涛涛 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "P3455 [POI2007]ZAP Queries" 题意 给定 $a,b,d$,求 $\sum_{x=1}^{a} \sum_{y=1}^{b}[gcd(x, y) = d]$。 思路 莫比乌斯函数的一个性质: $$[x = 1] = \sum_{d|x} \mu(d)$$ 设 $ 阅读全文
posted @ 2019-10-08 22:03 wuli涛涛 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 1847" Problem Description 大学英语四级考试就要来临了,你是不是在紧张的复习?也许紧张得连短学期的ACM都没工夫练习了,反正我知道的Kiki和Cici都是如此。当然,作为在考场浸润了十几载的当代大学生,Kiki和Cici更懂得考前的放松,所谓“张弛有道” 阅读全文
posted @ 2019-10-07 22:33 wuli涛涛 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页