
----数位dp
_Occult_
物語が始まった
展开
-
HDU 5225 Tom and permutation
Problem Description Tom has learned how to calculate the number of inversions in a permutation of n distinct objects by coding, his teacher gives him a problem: Give you a permutation of n distinc原创 2015-05-09 22:24:11 · 806 阅读 · 0 评论 -
HDU 3555 Bomb
Problem Description The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the curr原创 2015-05-03 21:50:42 · 394 阅读 · 0 评论 -
HDU 5587 Array
Problem Description Vicky is a magician who loves math. She has great power in copying and creating. One day she gets an array {1}。 After that, every day she copies all the numbers in the arrays sh原创 2015-11-29 23:06:02 · 538 阅读 · 0 评论 -
ACdream 1064 完美数
Description 8是中国人很喜欢的一个数字,但是如果有3的存在就变成了38,就不是很好了。。 你能告诉我,在[L, R] 的正整数区间内,要么包含3 要么包含 8 的不同的整数有多少个么? Input 第一行一个整数T (T ≤ 10000),代表数据的组数 对于每组数据给两个整数 L, R (1 ≤ L ≤ R ≤ 1e9)原创 2015-05-27 21:40:39 · 465 阅读 · 0 评论 -
HDU 4722 Good Numbers
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,原创 2017-04-04 21:03:22 · 305 阅读 · 0 评论