I am curious about one thing:
long double operations are slower than double operations, this is right or not ?
if right then how the code in the image got accepted when using long double and got time limit using double ? used compiler is C++14
TLE code : https://ideone.com/aBP7qj , submission: 42043185
ACC code: https://ideone.com/ym5SOr , submission: 42042825