版本比较
__OI R2 题解
正文
增加 4 行删除 4 行
77 行未改动7879808182838485868788899050 行未改动14114214314414514614714814915015115215315441 行未改动77 行未改动```cppvoid dfs (int pos,int mul){if (pos == n + 1){v.push_back(mul);return;}for (int i = 1 ; i <= a[pos] ; i++)dfs(pos + 1,mul * i);}void solve(){cin >> n >> m;for (int i = 1 ; i <= n ; i++) cin >> a[i];for (int i = 1 ; i <= m ; i++) cin >> b[i];50 行未改动#define int long long#define endl '\n'const int N = 3e5 + 10;const int inf = 1e9;int n,m,k;int a[N],b[N],dp[N];multiset <int> s0,s1;void add (int x,int y){if (x) s1.insert(y);s0.insert(y);}41 行未改动77 行未改动7879808182838485868788899050 行未改动14114214314414514614714814915015115215315441 行未改动77 行未改动```cppvoid dfs (int pos,int mul){if (pos == n + 1){v.push_back(mul);return;}for (int i = 1 ; i <= a[pos] ; i++)dfs(pos + 1,mul * i);}void solve(){cin >> n >> m;for (int i = 1 ; i <= n ; i++) cin >> a[i];for (int i = 1 ; i <= m ; i++) cin >> b[i];50 行未改动#define int long long#define endl '\n'const int N = 3e5 + 10;const int inf = 1e9;int n,m,k;int a[N],b[N],dp[N];multiset <int> s0,s1;void add (int x,int y){if (x) s1.insert(y);s0.insert(y);}41 行未改动