Please read the new rule regarding the restriction on the use of AI tools. ×

krazy8's blog

By krazy8, history, 3 years ago, In English

Why do some programmers add rng(chrono::steady_clock::now().time_since_epoch().count()); in their template.
Also why typedef tree<int, null_type, less, rb_tree_tag, tree_order_statistics_node_update> pbds;
Can you also share me best competitive programming template you have ever seen?

  • Vote: I like it
  • -24
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +4 Vote: I do not like it

Well, the first one is a better randomizer than rand() using mt19937. You can find more informations here

The second one is the ordered set included in Policy Based Data Structure You can find more informations here

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Check your browser for what it actually does...