#P5965. [PA 2019] A+B
[PA 2019] A+B
Description
When writing down the vertical addition of two decimal numbers, people may miscalculate it like this:

In the left part of the picture, is wrongly calculated as .
Given a positive integer , ask how many pairs of non-negative integers satisfy that would be miscalculated as .
Note that may be equal to , and and are considered two different solutions.
Input Format
The first line contains a positive integer .
Output Format
Output an integer, the number of pairs that satisfy the condition.
112
50
Hint
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号