CF 527C STL set和multiset 典型应用

Leonid wants to become a glass carver (the person who creates beautiful artworks by cutting the glass). He already has a rectangularwmm×hmm sheet of glass, a diamond glass cutter and lots of enthusiasm. What he lacks is understanding of what to carve and how.

In order not to waste time, he decided to practice the technique of carving. To do this, he makes vertical and horizontal cuts through the entire sheet. This process results in making smaller rectangular fragments of glass. Leonid does not move the newly made glass fragments. In particular, a cut divides each fragment of glass that it goes through into smaller fragments.

After each cut Leonid tries to determine what area the largest of the currently available glass fragments has. Since there appear more and more fragments, this question takes him more and more time and distracts him from the fascinating process.

Leonid offers to divide the labor — he will cut glass, and you will calculate the area of the maximum fragment after each cut. Do you agree?

,人生不如意十之八-九,与其诅咒黑暗,倒不如在生命中点燃一盏灯

CF 527C STL set和multiset 典型应用

相关文章:

你感兴趣的文章:

标签云: