Problem 3461 --VF

3461: VF

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $1$ 正确数量 $1$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 动态规划
Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become famous all over the world. But how can he do that if the most interesting facts such as Pythagor’s theorem are already proved? Correct! He is to think out something his own, original. So he thought out the Theory of Vasya’s Functions. Vasya’s Functions (VF) are rather simple: the value of the Nth VF in the point S is an amount of integers from 1 to N that have the sum of digits S. You seem to be great programmers, so Vasya gave you a task to find the milliard VF value (i.e. the VF with N = 109) because Vasya himself won’t cope with the task. Can you solve the problem?
There are multiple test cases.
Integer S (1 ≤ S ≤ 81).
The milliard VF value in the point S.
1
10

推荐代码 查看3461 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] aoj_judger 614483 2020-10-05 22:54:58
内存最少[$1124 $KB] aoj_judger 614483 2020-10-05 22:54:58
第一AC aoj_judger 614483 2020-10-05 22:54:58
第一挑战 aoj_judger 614483 2020-10-05 22:54:58

赛题来源/所属竞赛 N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛