摘要:
/* 询问每个节点子树上的颜色数 */ #include <bits/stdc++.h> using namespace std; const int maxn=1e5+5; struct edge{ int v,next; }E[maxn<<1]; int head[maxn],tot=0; vo 阅读全文
摘要:
数位DP模板 //求l~r所有数的数位和之和 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod=1e9+7; int a[25],len; int dp[25][2][200]; int 阅读全文