摘要:
有旋Treap模板 //pointer version #include <bits/stdc++.h> using namespace std; struct Node { Node *ch[2]; int val, rank; int rep_cnt; int siz; Node(int val 阅读全文
摘要:
每次向下或者向右走,问从(1,1)到(n,m)的不同路线数 经典dp入门题 #include <bits/stdc++.h> using namespace std; long long dp[50][50]; int main(){ dp[1][1]=1; for(int i=1;i<=21;++ 阅读全文
摘要:
不难发现在过程中有很多出现过的数,直接记忆化一下就好。。。 #include <bits/stdc++.h> using namespace std; int main(){ int _=1000000; map<long long,long long> mp; int mx=0; int ans= 阅读全文
摘要:
macOS M1 下pip install安装.whl报错“is not a supported wheel on this platform.“ 多半是由于conda的python环境和你要安装的文件版本不匹配 pip debug --verbose 查看当前支持的版本号 会发现当前和我们要安装的 阅读全文
摘要:
2018-2019 ACM-ICPC, Asia Jiaozuo Regional Contest A. Xu Xiake in Henan Province 签到 D. Keiichi Tsuchiya the Drift King 几何,队友过的,好像说用三角函数会卡精度? #include < 阅读全文