经典简约
清爽简洁,回归本真
液态水晶
毛玻璃+霓虹光带
赛博朋克
霓虹故障艺术风
🚫
违规操作检测
禁止使用右键菜单
⚠️ 此操作已被系统记录
1

The Almost Lucky Numbers(Harder)

📝 题解 🔵 仅限 C++
题目描述
<p>John and Brus believe that the digits 4 and 7 are lucky and all others are not. According to them, an almost lucky number is a number that contains at most one non-lucky digit in its decimal representation. Return the total number of almost lucky numbers between <b>a</b> and <b>b</b>, inclusive.</p>
输入格式
<p>Each line contains two integers a,b&lt;=10^16</p>
输出格式
<p>For each line of input,output the total number of almost lucky numbers between <b>a</b> and <b>b</b>, inclusive.</p>
样例
样例输入 1
4 7 8 19
样例输出 1
4 4
提交代码
请先登录后提交

🤖 AI 解题助手

DeepSeek
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这道题,可以帮你分析思路、提供代码示例。
⚠️ 请先登录后使用