#P16290. [蓝桥杯 2026 省 Java A 组] 间歇性发射

    ID: 18305 远端评测题 1000ms 512MiB 尝试: 0 已通过: 0 显示难度普及 上传者: 标签>数学提交答案2026蓝桥杯省赛

[蓝桥杯 2026 省 Java A 组] 间歇性发射

Problem Description

When the RF chip of a 6G base station runs at an extremely high frequency band, it will generate a huge amount of heat. To ensure device safety, engineer Xiao Lan from the National Communications Laboratory designed an “intermittent transmission mechanism” to control heat dissipation.

The core logic of this mechanism is to switch the transmitter between the “working state” and the “sleep state”. The specific switching rule is determined by three key parameters set by Xiao Lan on the console: the start time AA, the end time MM, and an initial check value SS.

The system clock kk will run from 2A2A to MM. For each clock time kk, the system decides whether it is currently “working” or “sleeping” according to the following logic:

  1. Compute the period index VV corresponding to the current clock time kk: V=k2A+1V = \lfloor \frac{k}{2} \rfloor - A + 1 (note: x\lfloor x \rfloor means floor).

  2. Determine the state:

    • If the period index VV is odd, then the chip is in the working state.
    • If the period index VV is even, then the chip enters the sleep state.

To verify whether the chip executes this switching logic exactly, the system will take all clock times kk that are in the working state, perform a bitwise XOR operation with the initial check value SS, and call the resulting value the check code.

For example, let A=2,M=7,S=0A = 2, M = 7, S = 0, then the range of kk is 4,5,6,74, 5, 6, 7.

  • k=4k = 4: V=4/22+1=1V = \lfloor 4/2 \rfloor - 2 + 1 = 1 (odd). State: working.
  • k=5k = 5: V=5/22+1=1V = \lfloor 5/2 \rfloor - 2 + 1 = 1 (odd). State: working.
  • k=6k = 6: V=6/22+1=2V = \lfloor 6/2 \rfloor - 2 + 1 = 2 (even). State: sleep (ignored).
  • k=7k = 7: V=7/22+1=2V = \lfloor 7/2 \rfloor - 2 + 1 = 2 (even). State: sleep (ignored).

Check code =S45=045=1= S \oplus 4 \oplus 5 = 0 \oplus 4 \oplus 5 = 1.

After confirming that the mechanism is correct, Xiao Lan entered the real extreme test parameters. Now, please help him compute the final check code:

  • Start time A=12345678901235A = 12345678901235
  • End time M=98765432109874M = 98765432109874
  • Initial check value S=20260411S = 20260411

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. Any extra content will result in no score.



Hint

Translated by ChatGPT 5