#P11995. Days Until Next Perfect Square Year
Days Until Next Perfect Square Year
Days Until Next Perfect Square Year
Define a year \(x\) to be a perfect square year if and only if there exists a positive integer \(y\) such that \(x = y^2\). Given that today is March 29, 2025, compute the number of days from 2025-03-29 0:00 to the next perfect square year's January 1 0:00. Note that even if 2025 is itself a perfect square year (since \(45^2 = 2025\)), you should look for the next perfect square year, which is \(46^2 = 2116\>.
Example: The interval is calculated from 2025-03-29 0:00 to 2116-01-01 0:00. You need to account for leap years properly while computing the difference.
inputFormat
This problem does not require any input.
outputFormat
Output a single integer representing the number of days from 2025-03-29 0:00 to the next perfect square year's January 1 0:00.
sample
N/A
33148