摘要: 数位DP - AcWing 338 - 计数问题 注意前导0的影响 #include <bits/stdc++.h> using namespace std; int a, b; int num[10]; int dp[10][10]; // 当前填位i,tar数已经出现的次数j int dfs(i 阅读全文
posted @ 2021-04-19 10:25 popozyl 阅读(51) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1e6+5; bool st[N]; int cnt; int primes[N]; void get_primes(int n){ // O(nlogn) 朴素筛法 for(in 阅读全文
posted @ 2021-04-19 08:24 popozyl 阅读(42) 评论(0) 推荐(0) 编辑