ymkzpx

Success and failure are temporary.


  • Home

  • Archives

  • Tags

  • About

HDU1542 矩形面积并

Posted on 2018-09-23 | In ACM , HDU , 线段树

这么经典的东西竟然原来都没写过(…


题目链接

题解

  • 好像算了一下内存不离散化好像问题也不大?(x
  • 离散化x坐标,经典的线段树更新
  • 每个点要记录这个点到上一个点的距离或者这个点到下一个点的距离即可。

代码

# ACM # HDU # 线段树
HDU6222 打表/pell方程、高精度
HDU1705 皮克定理
  • Table of Contents
  • Overview
Kzpx

Kzpx

Hello the cruel world.

215 posts
133 categories
100 tags
GitHub
Links
  • CS-Notes
  • Ali-CsNotes
  • Deadline
  • luowentao
  • biubiubiu
  • Gstnt
  • ecnu
  • Lzy
  • Menci
  • kuangbin
  • meopass
  • tokitsukaze
  • cubercsl
  • Claris
  • hzwer
  • qscqesze
  • ICPCCamp
  • ZYF
  • xehoth
  • Ocean
  • MrBird_to_fly
  • starry_sky
  • Multi-school AC>=20
  • snowy_smile
  • fjzzq2002
  1. 1. 题解
  2. 2. 代码
© 2019 Kzpx
Powered by Hexo
|
Theme — NexT.Mist v5.1.4