题解:P15430 [蓝桥杯 2025 国 Python B] 等差数列计数
neo20131118 · · 题解
按公差分类讨论(目前只考虑递增)。
公差为
公差为
公差为
以后,公差每增加
但是!
所以真正的答案是
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cout<<"2048288";
return 0;
}