摘要: https://www.acwing.com/problem/search/1/?csrfmiddlewaretoken=wyW6XX4FSlPpfVYIO2nYummi2nbX1lzl2LZwYexayS4ZPas0PAVvMcHpJm3qTUVv&search_content=%E8%82%A1 阅读全文
posted @ 2022-11-21 21:59 Herkaii 阅读(10) 评论(0) 推荐(0)
摘要: https://zhidao.baidu.com/question/374490574378994124.html 例题 https://www.luogu.com.cn/problem/P1959 https://www.luogu.com.cn/problem/P2867 阅读全文
posted @ 2022-11-21 21:26 Herkaii 阅读(126) 评论(0) 推荐(0)
摘要: //凑面值问题 #include<bits/stdc++.h> #define int long long using namespace std; int n,res; int a[20]; bool f[100000010]; int gcd(int a,int b) { if(b==0) re 阅读全文
posted @ 2022-11-20 22:22 Herkaii 阅读(30) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_41033366/article/details/94491906 阅读全文
posted @ 2022-11-20 21:16 Herkaii 阅读(29) 评论(0) 推荐(0)
摘要: 无数次血的教训,一用map就超时,一用set就超时,用数组就过,宁可牺牲点空间也要用数组! 阅读全文
posted @ 2022-11-20 11:56 Herkaii 阅读(15) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P1842 阅读全文
posted @ 2022-11-20 10:38 Herkaii 阅读(14) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P2340 阅读全文
posted @ 2022-11-20 10:37 Herkaii 阅读(15) 评论(0) 推荐(0)
摘要: //把10进制转化成n进制 #include<bits/stdc++.h> using namespace std; int n,num; int a[100010]; int main() { cin>>n>>num; int i=0; while(num) { a[++i]=num%n; num 阅读全文
posted @ 2022-11-19 18:51 Herkaii 阅读(50) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int n; string a; int b[10010]; int main() { cin>>n>>a; for(int i=0;i<a.size();i++) { if(a[i]>='0'&&a[i]<= 阅读全文
posted @ 2022-11-19 18:41 Herkaii 阅读(111) 评论(0) 推荐(0)
摘要: 默认是以e为底,可以用换底公式计算任意底的对数log(n)/log(m)为以m为底n的对数 可以直接用log2(n) 阅读全文
posted @ 2022-11-17 11:43 Herkaii 阅读(424) 评论(0) 推荐(0)