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

Автор VanLam, история, 13 месяцев назад, По-английски

Recently, I've reached CM in the last contest, and I also have participated over 100 rounds but I couldn't see the coach mode feature in the gym page. Is there any restriction about coach mode that I don't know?

Полный текст и комментарии »

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

Автор VanLam, история, 15 месяцев назад, По-английски

A1. Hiệu lớn nhất (Easy)

Solution
Code

A2. Hiệu lớn nhất (Hard)

Solution
Code

B. Khoảng cách xa nhất

Solution
Code

C. Thu nhỏ mảng

Solution
Code

D1. Thoát khỏi mê cung (Easy)

Solution
Code

D2. Thoát khỏi mê cung (Hard)

Solution
Code

E. Số thứ K

Solution
Code

F. Đếm cặp

Solution
Code

G1. Trò chơi trên cây (Easy)

Solution
Code

G2. Trò chơi trên cây (Meium)

Solution
Code

G3. Trò chơi trên cây (Hard)

Solution
Code

H1. Harry Potter (Easy)

Solution
Code

H2. Harry Potter (Meium)

Solution
Code

H3. Harry Potter (Hard)

Solution
Code

Полный текст и комментарии »

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

Автор VanLam, история, 19 месяцев назад, По-английски

I've just learned about ordered set. I tried to use these templates

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> multi_ordered_set;

But I'm using Macbook, so I couldn't compile it. How can I fix that? Thanks for your help.

Полный текст и комментарии »

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