#P3216. [HNOI2011] 数学作业
[HNOI2011] 数学作业
Description
Xiao C excels in math, so the teacher assigned him a very difficult math homework problem:
Given positive integers , compute , where is the number obtained by concatenating all positive integers in order.
For example, , . After thinking for a long time, Xiao C realized that this problem is impossible to work out by hand, so he asks you to write a program to solve it for him.
Input Format
One line with two positive integers .
Output Format
Output one integer on a single line representing the answer.
13 13
4
Hint
Constraints
For of the testdata, .
For of the testdata, , .
- On 2023.4.20, one set of hack testdata was added.
Translated by ChatGPT 5
京公网安备 11011102002149号