上一页 1 ··· 16 17 18 19 20

2018年8月19日

读入优化和输出优化模板

摘要: cin << scanf < cin(关闭流同步) < read << fread c++入门: #include<bits/stdc++.h> using namespace std; int a; int main() { cin>>a; cout<<a<<endl; return 0; } c 阅读全文

posted @ 2018-08-19 15:31 solvit 阅读(623) 评论(0) 推荐(0)

BZOJ1089: [SCOI2003]严格n元树

摘要: BZOJ1089: [SCOI2003]严格n元树 dp+快速幂+高精度(这里用了java) f[i] 表示深度小于等于i的严格n元树的种类数 ans = f[d] - f[d-1] f[0] = 1 f[i] = f[i-1]n + 1 转移式考虑: 对于深度为i-1的严格n元树,我们考虑将它加在 阅读全文

posted @ 2018-08-19 14:28 solvit 阅读(181) 评论(0) 推荐(0)

2018 “百度之星”程序设计大赛 - 初赛(B)

摘要: rank 264, 三题水过 ~ hdu6380_degree #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 200005; int in[maxn]; int n,m,k; 阅读全文

posted @ 2018-08-19 11:24 solvit 阅读(224) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20

导航