HDU 4722 Good Numbers(找规律)
来源:互联网 发布:飞机升阻比知乎 编辑:程序博客网 时间:2024/06/06 03:45
Description
If we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number.
You are required to count the number of good numbers in the range from A to B, inclusive.
You are required to count the number of good numbers in the range from A to B, inclusive.
Input
The first line has a number T (T <= 10000) , indicating the number of test cases.
Each test case comes with a single line with two numbers A and B (0 <= A <= B <= 10 18).
Each test case comes with a single line with two numbers A and B (0 <= A <= B <= 10 18).
Output
For test case X, output "Case #X: " first, then output the number of good numbers in a single line.
Sample Input
21 101 20
Sample Output
Case #1: 0Case #2: 1
Hint
The answer maybe very large, we recommend you to use long long instead of int.
0 0
- hdu 4722 Good Numbers ( 找规律 )
- HDU 4722 Good Numbers(找规律)
- HDU 4722 Good Numbers(找规律)
- hdu 4722 Good Numbers(找规律)
- HDU-4722-Good Numbers(找规律)
- HDU 4722 Good Numbers(找规律+数位DP)
- HDU 4722 Good number 找规律
- hdu 4722 Good Numbers(找规律,记忆化搜索,数位dp)
- HDU 4722 Good Numbers 数位dp或找规律枚举 数位dp感悟
- hdu 4722 Good Numbers(规律题)
- HDU 4722 Good Numbers
- HDU 4722 Good Numbers
- Hdu 4722 Good Numbers
- hdu 4722 Good Numbers
- HDU 4722 Good Numbers
- HDU 4722 Good Numbers
- hdu 4722 Good Numbers
- HDU 4722 Good Numbers
- Javascript预编译和执行过程
- 浙江大学PAT_乙级_1023. 组个最小数 (20)
- Markdown 语法(4)- Links 链接
- css两行显示省略号
- java泛型的讨论
- HDU 4722 Good Numbers(找规律)
- 自己总结的一些常数据结构基础知识
- 23个MySQL常用查询语句
- poj 3468 线段树延迟标记
- 使用UIAppearance协议自定义视图
- 快排中partition函数-java
- WebView简单使用方法
- C++ primer 读书笔记(第4章)表达式
- 约瑟夫问题(单向循环链表应用实例)