#include<bits stdc++.h> using namespace std; int main() { double a,b,c,d,l,r,R,L; scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &c, &d, &l, &r); if(a!=0) {R=c*r/a+(d/a-b*c/(a*a))*log(fabs(a*r+b)); L=c*l/a+(d/a-b*c/(a*a))*log(fabs(a*l+b));} else {R=((c*r*r)/(2*b)+(d*r)/b); L=((c*l*l)/(2*b)+(d*l)/b); } // cout<<(a*r+b)<<" "<<(a*l+b); printf("%.6lf\n",(r-l)); return 0; }< pre></(a*r+b)<<" "<<(a*l+b);></bits>
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |