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

字符串清除问题 | caojiangxia #24

Open
caojiangxia opened this issue Mar 7, 2019 · 4 comments
Open

字符串清除问题 | caojiangxia #24

caojiangxia opened this issue Mar 7, 2019 · 4 comments

Comments

@caojiangxia
Copy link
Owner

https://caojiangxia.github.io/2019/03/06/StringClear/#more

字符串清除问题最近做比赛的时候,遇到了两道相似的字符串清除题目。 CF438D-Flood Fill题目大意给我们一个有$n$个数的数组,我们可以选择一个位置作为起始点,每次操作我们可以将包含起始点的特殊区间中的每个数替换为别的数,所谓特殊区间意思就是区间内原本的数要求全部相同。问我们最少进行几次操作可以使得所有的数都一样。 数据范围:n<5000 样例:input:45 2 2 1 out

@tiraffe
Copy link

tiraffe commented Mar 12, 2019

https://codeforces.com/contest/1107/problem/E 这道也是。。。DP可太费脑子了。。。

@caojiangxia
Copy link
Owner Author

@tiraffe
https://codeforces.com/contest/1107/problem/E 这道也是。。。DP可太费脑子了。。。

哈哈哈,学长还在做题呢?最近有跳槽的打算吗?

@caojiangxia
Copy link
Owner Author

@tiraffe
https://codeforces.com/contest/1107/problem/E 这道也是。。。DP可太费脑子了。。。

所以这个题目我又做了一个小时。。。

@tiraffe
Copy link

tiraffe commented Mar 13, 2019

做着玩,现在好久不做题越来越菜了,跳槽的话不至于做CF受苦啊。。。哈哈

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

2 participants