#P16233. [蓝桥杯 2026 省 B] 双碳战略

    ID: 18267 远端评测题 1000ms 512MiB 尝试: 9 已通过: 1 显示难度提高 上传者: 标签>提交答案组合数学2026蓝桥杯省赛

[蓝桥杯 2026 省 B] 双碳战略

Problem Description

The intelligent upgrade of a city lighting system is a key pilot project for carrying out the national “dual-carbon” strategy. As a demonstration project, the Municipal Energy Bureau deployed a linear array of 20262026 smart streetlights on a newly built green avenue.

Initially, all these 20262026 streetlights are in the high-energy “all-on mode”. To evaluate the system’s response under extreme conditions, the central control system needs to traverse and simulate all switch combinations that theoretically exist.

However, limited by the physical properties of the underlying hardware, the control system must operate strictly according to a “two-way alternating” rule:

  1. On odd-numbered commands (the 1,3,51, 3, 5 \dots commands): the system must choose a streetlight ii (1i20261 \le i \le 2026), and flip the switch states of this streetlight and all streetlights to its right (behind it) (on becomes off, off becomes on).
  2. On even-numbered commands (the 2,4,62, 4, 6 \dots commands): the system must choose a streetlight ii, and flip the switch states of this streetlight and all streetlights to its left (in front of it).

For 20262026 streetlights, there are 220262^{2026} different on/off state combinations, and every state can definitely be reached. For each specific state, there exists a minimum number of commands needed to reach it from the initial “all-on” state (no matter how many different operation sequences can reach that state, only the one with the fewest steps counts).

Note: the initial “all-on” state is also included among these 220262^{2026} combinations, and the minimum number of operations to reach this state is defined as 00.

Now, please compute the sum of the minimum operation counts over all 220262^{2026} states. Since the sum may be very large, output the result modulo 998244353998244353.

Output Format

This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The result is an integer; when submitting your answer, fill in only this integer. Any extra content will make you score 00.



Hint

Translated by ChatGPT 5