【CodeForces】[624A]Save Luke
又是一个一句话AC题目
#include<stdio.h>
int main() {
int d,l,v1,v2;
while(scanf("%d %d %d %d",&d,&l,&v1,&v2)!=EOF)
printf("%lf\n",(double)(l-d)/(v1+v2));
return 0;
}
又是一个一句话AC题目
#include<stdio.h>
int main() {
int d,l,v1,v2;
while(scanf("%d %d %d %d",&d,&l,&v1,&v2)!=EOF)
printf("%lf\n",(double)(l-d)/(v1+v2));
return 0;
}