CF620B.Grandfather Dovlet’s calculator
入门
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Once Max found an electronic calculator from his grandfather Dovlet's chest. He noticed that the numbers were written with seven-segment indicators (https://en.wikipedia.org/wiki/Seven-segment_display).

Max starts to type all the values from a to b. After typing each number Max resets the calculator. Find the total number of segments printed on the calculator.
For example if a = 1 and b = 3 then at first the calculator will print 2 segments, then — 5 segments and at last it will print 5 segments. So the total number of printed segments is 12.
有一次,马克在祖父多夫列特的箱子中发现了一个电子计算器。他注意到数字是用七段数码管显示的(https://en.wikipedia.org/wiki/Seven-segment_display)。

马克开始依次输入从 a 到 b 的所有整数。每输入一个数字后,马克都会将计算器清零。求计算器总共点亮的段数。
例如,若 a=1 且 b=3,则计算器首先显示 1,点亮 2 段;接着显示 2,点亮 5 段;最后显示 3,点亮 5 段。因此,总共点亮的段数为 12。
输入格式
The only line contains two integers a, b (1 ≤ a ≤ b ≤ 106) — the first and the last number typed by Max.
唯一一行包含两个整数 a 和 b(1≤a≤b≤106)——分别为 Max 输入的第一个数和最后一个数。
输出格式
Print the only integer a — the total number of printed segments.
输出唯一的整数 a —— 打印出的线段总数。
输入输出样例
输入#1
1 3
输出#1
12
输入#2
10 15
输出#2
39
输入解题思路,AI测评打分。不知道怎么写?