#P16260. [蓝桥杯 2026 省 Python/Java B 组] 和平干饭日
[蓝桥杯 2026 省 Python/Java B 组] 和平干饭日
Problem Description
Cat owner Xiao Lan keeps huge Maine Coon cats at home. To make their lives more fun, Xiao Lan bought a “weird feeder” with artificial intelligence.
This feeder has a very user-unfriendly rule for dispensing food: the total number of cat food pellets it spits out each day is an integer formed by concatenating the natural numbers starting from in order.
Specifically:
- On day , the feeder spits out pellet;
- On day , the feeder spits out pellets (concatenating and );
- On day , the feeder spits out pellets;
If the total number of pellets on some day can be evenly divided among these cats (that is, each cat gets exactly the same number of pellets), then they will live peacefully. Such a day is called a “Peaceful Mealtime Day”. If it cannot be evenly divided, they will fight over the leftovers.
Now, the feeder has been scheduled to run for exactly days. Please help the worried Xiao Lan calculate: among these days, how many days are “Peaceful Mealtime Days” in total?
Output Format
This is a result-only fill-in-the-blank problem. You only need to compute the answer and submit it. The answer is an integer; when submitting, fill in only this integer. Any extra content will result in no score.
Hint
Translated by ChatGPT 5