VanLam's blog

By VanLam, history, 6 months ago, In English

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?

Full text and comments »

  • Vote: I like it
  • +22
  • Vote: I do not like it

By VanLam, history, 9 months ago, In English

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

Full text and comments »

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

By VanLam, history, 13 months ago, In English

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.

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it