/*********
根据题意 就是 sum(l..r)整除10
对于 a,b,c,d 这个数列
注:/ 为整除
sum/10 = (a+b+c+d)/10
= (a+b)/10+(c+d)/10+ ((a+b)%10+(c+d)%10)/10
****************/
#include<bits/stdc++.h>
using namespace std;
const int maxn = 1e5+50;
int
CF——1189C——(前缀和+数学思维)
最新推荐文章于 2020-09-27 19:49:10 发布