Description Description There is a stone game.At the beginning of the game the player picks n piles of stones in a circle. The goal is to merge the st ...
分类:
其他好文 时间:
2019-12-21 22:30:37
阅读次数:
83
Sand washer can separate the stone powder, clay from the aggregates. It is applied in construction site, sandstone factory, precast yard, and water an... ...
分类:
其他好文 时间:
2019-11-07 14:50:32
阅读次数:
96
原题链接在这里:https://leetcode.com/problems/last-stone-weight-ii/ 题目: We have a collection of rocks, each rock has a positive integer weight. Each turn, we ...
分类:
其他好文 时间:
2019-11-03 10:27:37
阅读次数:
81
原题链接在这里:https://leetcode.com/problems/last-stone-weight/ 题目: We have a collection of rocks, each rock has a positive integer weight. Each turn, we cho ...
分类:
其他好文 时间:
2019-11-03 10:26:45
阅读次数:
81
题面 Grigory has n n magic stones, conveniently numbered from $1$ to $n$. The charge of the $i$ th stone is equal to $c_i$. Sometimes Grigory gets bored ...
分类:
其他好文 时间:
2019-11-01 14:40:58
阅读次数:
85
实数二分,最短路,线段树,记忆化搜索,模拟,状压dp,杜教筛
maze,bird,stone,军训队列,山屋惊魂,彩球问题 ...
分类:
其他好文 时间:
2019-10-28 20:52:24
阅读次数:
97
题目链接: "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 ...
分类:
其他好文 时间:
2019-10-11 23:11:22
阅读次数:
97
Acm is a clever boy, and he developed a new game form the old Stone-Forfex-Cloth game. In this game, a number of children sit in a circle, each one sh ...
分类:
其他好文 时间:
2019-10-02 10:47:20
阅读次数:
96
题意:https://nanti.jisuanke.com/t/41420 给你n个石子的重量,要求满足(Sum<=2*sum<=Sum+min)的方案数,min是你手里的最小值。 思路: 从最大重量的石子开始背包,每次ans+=dp【j-v【i】】就行了。 ...
分类:
其他好文 时间:
2019-09-17 19:00:55
阅读次数:
74
题:https://nanti.jisuanke.com/t/41420 定义 dp[x][y] 表示第 x 个数到最后一个数能组成和为 y 的方案数 #include<bits/stdc++.h> using namespace std; typedef long long ll; const i ...
分类:
其他好文 时间:
2019-09-16 00:20:33
阅读次数:
71