taisformula - bradendubois/competitive-programming GitHub Wiki
Tai's formula
ID: taisformula
Difficulty: 1.5
CPU Time: 1 second
Memory: 1024 MB
Solution
For this one, the formula is given, so one can calculate it on any line with reference to the current t and sample values and the previous pair; one needs to find a way to ensure the formula isn't run on the first line with the "previous" records being not yet read.