摘要: A题 题意:找到$S(x)>S(x+1)$的数在$x∈(0,n)$的范围内的个数S(x)是x的个数数字的和。容易发现x的末尾数字是9时S(x)>S(x+1) 才成立。所以答案是x/10+(x%10==9) #include <bits/stdc++.h> #define re register #d 阅读全文
posted @ 2021-07-23 01:40 Acception 阅读(84) 评论(2) 推荐(0)