WA in test case 2


I am getting wrong answer in test case2

use double instead of float.