题目链接:https://ac.nowcoder.com/acm/contest/9983/D 官方给出的题解如下(枚举加判断)#include<bits/stdc++.h>using namespace std;#define ll long longint f(int x){ int cnt=0; while(x){ cnt+=x%10,x/=10; } return cnt;}int main(){ ll n,t,i,j,k; cin>>n; for(i=n+1;i<=1e5;i++){ ...