文件名称:count-of-nine
介绍说明--下载内容均来自于网络,请自行研究使用
众所周知,琪露诺(チルノ,Cirno)是幻想郷 (げんそうきょう)中首屈一指的天才,可以说⑨就是她的代名词。
然而如今,她遇到了一个和⑨有关的难题。你能帮助她么?
题目是这样的,给出两个数 a 和 b (0 <= a <= b <= 10^10000),求 a 到 b 之间(包括a和b)的数字中,有多少个数字是包含9的(例如 19,910 等都是包含9的数字)。
输入
第一行为一个数字 T (0 < T <= 100) 表示数据组数。
之后的 T 行,每行包含两个数 a 和 b (0 <= a <= b <= 10^10000)。
输出
对每组数据输入,输出一个数字,表示 a 到 b 之间的数字中(包括a和b),有多少个数字是包含9的。(注意:答案可能很大)-As we all know, Qi Lu promise (Ciba Hikaru Techno, Cirno) is a fantasy Hongo (げ そ san u-ki January u) is the premier talent, it can be said that she ⑨ synonymous. Today, however, she encountered a problem and ⑨ related. Can you help her? Such topics are given two numbers a and b (0 < = a < = b < = 10 ^ 10000), seeking a between b (including a and b) the number, how many numbers are included 9 (for example, 19,910 and so are the number 9). Enter the first acts of a number T (0 < T < = 100) indicates the number of data sets. After the T lines, each line contains two numbers a and b (0 < = a < = b < = 10 ^ 10000). Output for each set of data input and output a number that represents a to b between digital (including a and b), how many numbers are included 9. (Note: The answer can be very large)
然而如今,她遇到了一个和⑨有关的难题。你能帮助她么?
题目是这样的,给出两个数 a 和 b (0 <= a <= b <= 10^10000),求 a 到 b 之间(包括a和b)的数字中,有多少个数字是包含9的(例如 19,910 等都是包含9的数字)。
输入
第一行为一个数字 T (0 < T <= 100) 表示数据组数。
之后的 T 行,每行包含两个数 a 和 b (0 <= a <= b <= 10^10000)。
输出
对每组数据输入,输出一个数字,表示 a 到 b 之间的数字中(包括a和b),有多少个数字是包含9的。(注意:答案可能很大)-As we all know, Qi Lu promise (Ciba Hikaru Techno, Cirno) is a fantasy Hongo (げ そ san u-ki January u) is the premier talent, it can be said that she ⑨ synonymous. Today, however, she encountered a problem and ⑨ related. Can you help her? Such topics are given two numbers a and b (0 < = a < = b < = 10 ^ 10000), seeking a between b (including a and b) the number, how many numbers are included 9 (for example, 19,910 and so are the number 9). Enter the first acts of a number T (0 < T < = 100) indicates the number of data sets. After the T lines, each line contains two numbers a and b (0 < = a < = b < = 10 ^ 10000). Output for each set of data input and output a number that represents a to b between digital (including a and b), how many numbers are included 9. (Note: The answer can be very large)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
9.鐞