摘要:
class Solution { public: using ll = long long; // 定义长整型别名,方便后续使用 const int mod = 1e9+7; // 定义取模常量,避免重复书写 // 快速幂函数,计算a的b次幂对mod取模的结果 ll ksm(ll a, ll b) 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ //st graph int n,m; cin>>n>>m; int len=(log2(n)); vector<vector<ll>>dp(n+ 阅读全文