#P10385. Practice Plan Based on Date Stroke Count
Practice Plan Based on Date Stroke Count
Practice Plan Based on Date Stroke Count
Little Blue was born into a family that values both art and sports. His mother is a calligrapher who hopes that Little Blue will inherit her artistic talent by practicing calligraphy, while his father, a basketball coach, wishes for him to develop physical strength, passion for sports, and team spirit through basketball.
To satisfy both parents, Little Blue decides to organize his daily practice based on the total stroke count of the Chinese characters representing the date. He first writes the date in the format \(YYYYMMDD\) (an 8-digit number). He then converts each digit to its corresponding Chinese numeral according to the table below and sums the stroke counts of these characters:
Chinese Numeral | Stroke Count | Chinese Numeral | Stroke Count |
---|---|---|---|
零 | \(13\) | 五 | \(4\) |
一 | \(1\) | 六 | \(4\) |
二 | \(2\) | 七 | \(2\) |
三 | \(3\) | 八 | \(2\) |
四 | \(5\) | 九 | \(2\) |
If the total stroke count is greater than \(50\), Little Blue practices basketball; otherwise (i.e. when the total is \(50\) or less) he practices calligraphy.
For example, on January 1, 2024 the date is written as 20240101. Converting each digit we get "二零二四零一零一". The stroke counts are: \(2 + 13 + 2 + 5 + 13 + 1 + 13 + 1 = 50\). Therefore, on that day he practices calligraphy.
Your task is to help Little Blue calculate the number of days on which he practices basketball in the period from January 1, 2000 to April 13, 2024 (inclusive).
inputFormat
This problem does not require any input.
outputFormat
Output a single integer representing the number of days Little Blue practices basketball within the given period.
sample
3732