跳到正文

wangcht

970957

AFOer

资料、奖项与版本

资料

编号
970957
抓取

奖项

2025 CSP-S
二等奖
2024 CSP-J
一等奖
2024 CSP-S
二等奖
2023 CSP-J
三等奖
C++
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]
C(n)=C(n−1)∗(4n−2)/(n+1)C(n)=C(n−1)*(4n−2)/(n+1) Cn=∑i=0n−1 CiCn−i−1C_n = \sum_{i = 0}^{n-1} \ C_iC_{n-i-1} Cn=C2nnn+1C_n = \frac{C^n_{2n}}{n+1}

未来始终掌握在自己手中,从中滑落的,我们称之为过去。

还没有收录这位用户的文章。