C++ STL is a good(newbee, perfect) tool, as well in ICPC.

Let’s have a quick look at that.

We use the sort function to implement the UVA 10474

In fact, the lower_bound is already implemented in STL, for which we can invoke it directly:

vector

vector

UVA 101:

set

set, is set, indeed.

UVA 10815:

stack

stack

NYIST 2: