//特化
template<class T> struct A
{
void Foo() { jhdbg_out("T");}
};
template<> struct A<char> //template<> 不可省略
{
void Foo() { jhdbg_out("char");}
};
//特化
template<class T> struct A
{
void Foo() { jhdbg_out("T");}
};
template<> struct A<char> //template<> 不可省略
{
void Foo() { jhdbg_out("char");}
};
最近遇到了三道數形結合的題目,不同的動機都直接指向了凸包(凸殼),利用凸殼上斜率(極角)的單調性進行二分。 1 .一個在傻X那裏淘到的一道數據結構題,from spoj:
bzoj2395 以前聽基哥講的時候就沒怎麼懂,以爲好難寫好難寫 // 其實不難寫,只是有點難調。 利用數形結合的思想,每棵生成樹在座標系上對應的是點(sigma(a),si