HBC15818Fresh Air题解

冷夕颜 算法基础篇 47 0
挑战自我,勇攀编程高峰!全网最全C++题库,助您成为编程达人。
It’s universally acknowledged that there’re innumerable trees in the campus of HUST. And you know that, trees have the special ability to refresh the air. If an area, which is surrou

It’s universally acknowledged that there’re innumerable trees in the campus of HUST. And you know that, trees have the special ability to refresh the air. If an area, which is surrounded by trees, is separated from the outer atmosphere, you can call it “the supercalifragilisticexpialidocious area”. Students can enjoy the healthiest air there. Then, you happened to know that HUST will plant N trees in a bare plain, so you want to calculate the total size of “the supercalifragilisticexpialidocious area” after each operation. We describe the position of trees with a coordinate.(Xi,Yi). For example, after 9 trees were planted, the green area is a supercalifragilisticexpialidocious area, its size is 3. After planting a new tree in (3,2), its size is 2.

HBC15818Fresh Air题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
不断挑战自我,才能突破极限!全网最全C++题库,让您在编程道路上越走越远。

标签: HBC15818Fresh Air题解