Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
7
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 32, Accepted users: 16
Problem 11856 : No special judgement
Problem description
  这是本次比赛的第7道题目,所以就来数一下数字7的数量。给定正整数a、b,问从a到b的所有数中数字7一共出现了多少次。
例如:给定1和17,则数字7一共出现了2次。

Input
  输入有多个案例,首先是一个不超过10000的正整数n,表示有n对正整数。其后有n行,每一行分别为a和b,保证a不大于b且均小于1000000。

Output
  对每一个输入输出一行为结果。

Sample Input
2
1 7
1 17
Sample Output
1
2
Problem Source
  HUNNU Contest 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2058 today,16258785 total, since 2010-05-07