化简 题给公式有an- a1 ==k 可行解则是 a1 .... an 枚举a1可得an的范围中间段的可能取值,显而易见可通过快速幂得出 累加a1的所有可行解即可 #include<bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define qios ios::sync_with_stdio(0),cin.tie(0),cout.tie(0) #define inf INT_MAX #define il inline const ll mod...