View Code
#include<stdio.h>
int main()
{
int x,y;
double z;
scanf("%d%d%lf",&x,&y,&z);
double t=(y-x)*60;
t=(t-z)*(t-z)*1.0/t/t;
printf("%.7lf\n",1-t);
}