making functions inline can get the TLE code accepted
This is my solution with inline function.
This is without inline keyword.(TLE)
making the function inline shortened execution time drastically.
Colin X Sam X Shayan | Easy Problems Duel | NAC Warmup #1
Codeforces Round 946 Solution Discussion