跳到正文

jiaxingxing

548629

在洛谷打开
资料、奖项与版本

资料

编号
548629
抓取

奖项

2025 CSP-S
一等奖
2025 NOIP
二等奖
2024 CSP-J
一等奖
2024 CSP-S
一等奖

An Ode to pb-ds

Upon the fields of Codeforces, where logic is the law,

And in Atcoder’s arenas, where ACs fill with awe,

There stands a silent weapon, a structure of great might,

The ordered_set from pb-ds, that turns the endless night.

When standard structures all falter, and TLE is near,

When bruteforce sighs in sorrow, and competitors fear,

You step into the battle, with functions swift and grand,

A find_by_order triumph, the strongest in the land.

With just a single #include, a new world is unveiled,

With tree and null_type, and rb_tree_tag declared,

With node_update statistics, a mighty framework true,

To see the rank of any key and fetch the Kth in view.

Oh, tree of red and blackness, your battle-born design,

To unlocking rankings and climbing to degree.

You turn a nightmare problem into a victory stroll,

The perfect indexed set in a coder’s control.

So let us sing your praises, from our keyboard we shall pray,

For helping us seize glory in the contest’s fierce fray.

Hail, pb-ds, data structure, so mighty and so grand,

The greatest leafy weapon in a programmer’s hand.

But lo, the tree’s true power, to those who deeply gaze,

Lies not just in its interface, but in its custom ways.

For you can forge an updater, with metadata of your own,

To track the subtree’s mysteries, in every node yet known.

还没有收录这位用户的文章。