主要考察前缀和,have判断的话可以用字符串。 ```#include <bits/stdc++.h> using namespace std; typedef long long ll; #define get_sum(l,r) (l? sum[r]-sum[l-1] : sum[r]) const int N=1e6+9; int arr[N]; int sum[N]; int have(int x) { string s=to_string(x); if(s.find("38")!=-1 || s.find('4')!=-1) return 1; return 0; } in...