#P16232. [蓝桥杯 2026 省 B] 青春常数
[蓝桥杯 2026 省 B] 青春常数
Background
All testdata for the Lanqiao Cup 2026 provincial contest on this site are created by Luogu and may differ from the official data. They are for learning reference only.
Problem Description
Xiao Lan’s connection with the Lanqiao Cup has reached its fourth year. From his first steps in 2023, to fighting through 2024 and 2025, and now in 2026, this will be the last time in his college life that he stands on this contest stage.
On the eve of retiring, filled with mixed feelings, Xiao Lan wrote down the years of these four contests in reverse order on scratch paper and concatenated them into a huge integer .
While整理 (zhengli) his competition notes from the past four years, he decided to split this constant into two non-negative integers and , representing the accumulation in the first half of his journey and the breakthrough in the second half. According to the splitting rule, the sum of these two parts must be exactly equal to (that is, ).
At the same time, because in the second half Xiao Lan built up a deeper foundation in algorithms, the value of the second part must be strictly greater than the value of the first part (that is, ).
Now, please compute how many integer pairs satisfy the above conditions.
Output Format
This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The result of this problem is an integer. When submitting the answer, only fill in this integer; submitting any extra content will result in no score.
Hint
Translated by ChatGPT 5