我们认为一个数是 7 好数,当且仅当它的开头和结尾都是数字 7。给定一个正整数 n,请问在区间 [1, n] 中有多少个 7 好数。
数据范围很小,直接枚举一遍判断每个数的开头和结尾是否都是7即可
我们认为一个数是 7 好数,当且仅当它的开头和结尾都是 7 。给定一个正整数 n ,请问 [1,n] 中有多少个 7 好数。
时间限制:1000ms
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.