Rower Bo (高数 + 物理)

#include<bits/stdc++.h>
#define esp (1e-5)
using namespace std;

int main(){
    int a;
    double v1, v2;
    while(~scanf("%d%lf%lf", &a, &v1, &v2)){
        if(a == 0) printf("0
");
        else if(fabs(v2 - v1) < esp || v1 < v2) printf("Infinity
");
        else{
            double ans = v1 * a / (v1 * v1 - v2 * v2);
            printf("%.10f
",ans);
        }
    }
    return 0;
}
more crazy more get!
原文地址:https://www.cnblogs.com/wethura/p/9823727.html