#P10983. Total Running Distance in 2023
Total Running Distance in 2023
Total Running Distance in 2023
In this problem, Little Blue has a running plan for the year 2023. On any day, if the date (including month, day, and weekday) contains the digit (in its usual decimal representation), Little Blue runs km; otherwise, she runs km. Note that the year is not considered because does not contain the digit . For weekdays, use the convention that Monday is represented as , Tuesday as , …, and Sunday as , and check if the digit appears in that number (i.e. if it is Monday).
For example, on May 1st, January 13th, November 5th, and April 3rd (which is a Monday) she will run km, while on May 23rd she will run km. Calculate the total distance Little Blue runs in the year 2023 under this plan.
The answer should be output as an integer representing the total kilometers run in 2023. All formulas in this description use ( \LaTeX ) formatting (e.g. , , etc.).
inputFormat
There is no input for this problem.
outputFormat
Output a single integer representing the total kilometers run by Little Blue in the year 2023.
sample
1337