两道算法题,1小时 第一道数学题 C(1,n)*1 + C(2,n)*2 + ... + C(n,n)*n推出n*2^(n-1) 然后快速幂取模,AC #include <iostream> #include <algorithm> #include <vector> #include <cmath> using namespace std; const int mod = 1e9+7; typedef long long ll; ll mod_pow(ll x, ll n){ ll ans = 1; w...