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

[内容有误] 线段树中《线段树的区间修改与懒惰标记》一节的第二张图疑似有误 #5612

Open
1 task
H3AlO3 opened this issue May 17, 2024 · 4 comments
Labels
Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed

Comments

@H3AlO3
Copy link

H3AlO3 commented May 17, 2024

请选择:

  • 我正在着手修复这个问题

我正在访问这个页面

https://oi-wiki.org/ds/seg/#%E7%BA%BF%E6%AE%B5%E6%A0%91%E7%9A%84%E5%8C%BA%E9%97%B4%E4%BF%AE%E6%94%B9%E4%B8%8E%E6%87%92%E6%83%B0%E6%A0%87%E8%AE%B0

我发现页面有这样的问题

图中d[1]应该是70吧
img

@H3AlO3 H3AlO3 added Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed labels May 17, 2024
Copy link

welcome bot commented May 17, 2024

感谢你对 OI Wiki 的关注!记得在 Issue 中表达清楚自己的意思哦~

@H3AlO3
Copy link
Author

H3AlO3 commented May 17, 2024

又看了看好像整张图的d[p]都没有被更新,不只是d[1]的问题

d[p] = d[p * 2] + d[p * 2 + 1]

图中这一步没有被执行

@szdytom
Copy link
Contributor

szdytom commented May 22, 2024

d[1]应该是75吧

@H3AlO3
Copy link
Author

H3AlO3 commented May 22, 2024

d[1]应该是75吧

是的,最开始我以为它只有d[1]写错了,后来发现它d[2]也没有更新,应该是d[1]=75, d[2]=38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Bug / 页面内容有误 Something isn't working help wanted / 需要帮助 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants