Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2022-10-10总结 | Ptilopsis_w's little blog #41

Open
Ptilopsisw opened this issue Oct 10, 2022 · 0 comments
Open

2022-10-10总结 | Ptilopsis_w's little blog #41

Ptilopsisw opened this issue Oct 10, 2022 · 0 comments

Comments

@Ptilopsisw
Copy link
Owner

https://ptilopsisw.github.io/2022/10/10/2022-10-10%E6%80%BB%E7%BB%93/

猫 CF311B 首先猫在哪个位置是没有影响的,重要的的是猫开始等的时间。 我们可以让每只猫的 ttt 减去它到起点的距离,也就是人最晚的可以使这只猫不等待的出发时间。 我们将这个时间记为数组 aaa,很明显正好接到 aaa 大的猫也可以接到 aaa 小的猫(只是需要等待),所以我们将 aaa 从小到大排个序,就可以让每个人接到的猫在 aaa 中是连续的一段,然后就可以 DP 了。 设 f(i,j

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant