Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя krazy8

Автор krazy8, история, 3 года назад, По-английски

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?

  • Проголосовать: нравится
  • -24
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

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 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Check your browser for what it actually does...