![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DFS
*Slime*
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #576 (Div. 2) F. Rectangle Painting 1(dfs搜矩形)
F. Rectangle Painting 1传送门There is a square grid of size n×n. Some cells are colored in black, all others are colored in white. In one operation you can select some rectangle and color all its cells...原创 2019-08-07 22:27:01 · 160 阅读 · 0 评论 -
2019暑假牛客多校第九场D.Knapsack Cryptosystem 折半搜索(dfs或状压)
D.Knapsack Cryptosystem传送门题目描述Amy asks Mr. B problem D. Please help Mr. B to solve the following problem.Amy wants to crack Merkle–Hellman knapsack cryptosystem. Please help it.Given an array {a...原创 2019-08-15 21:00:56 · 338 阅读 · 0 评论