map<int,int> num;
map<int,int>::iterator it=num.begin();
cout<<it->first<<" "<<it->second;
friend bool operator>(const node &x,const node &y)
bool operator>(const node &y) const
正数向上取整:
ceil(1.0*a/b)
改成
(a+b-1)/b
负数向上取整:
ceil(1.0*a/b)
改成
-(-a/b)
priority_queue<node,vector<node>,greater<node> > q;
第二类斯特林数:
将若干不同的数分入若干个集合的方案数
s[i][j]=s[i-1][j-1]+j*s[i-1][j]未来始终掌握在自己手中,从中滑落的,我们称之为过去。