Classic
Clean & simple
Crystal
Glassmorphism + Neon
Cyberpunk
Neon glitch art
🚫
违规Action检测
禁止Use右键菜单
⚠️ 此Action已被系统记录
1

The Almost Lucky Numbers

📝 Solutions 🔵 仅限 C++
Problems Description
<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>
Input格式
<p> Each line contains two integers a,b&lt;=1,000,000 </p>
Output格式
<p> For each line of input,output the total number of almost lucky numbers between <b>a</b> and <b>b</b>, inclusive. </p>
Sample
Sample Input 1
4 7 8 19
Sample Output 1
4 4
Submit Code
请先Login后Submit

🤖 AI 解题助手

OpenRouter
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这problems题,可以帮你points析思路、提供Code示例。
🔓 完全Free · 无需消耗 Token