摘要:
简单递归 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int MAXN=1e6+10; int a[10],vis[10]; int n; vector<vector<int>> ans; voi 阅读全文
摘要:
这题就是一道数位dp的一道题,直接用数学做就行了,分别统计个位、十位、百位上1的个数。 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int MAXN=1e6+10; int main() { #i 阅读全文