0_0_27967159_27770.cpp: In function 'int main()':
0_0_27967159_27770.cpp:24:26: error: expected '}' at end of input
if(2*v1*v1>v2*v2){//可以在[2,3)之间拦截 double l=0,r=300,m; for(int i=0;i<500;i++){ m=(l+r)/2; if(sqrt(f(300)+f(m))/v1>(300+m)/v2){ l=m; } else { r=m; } } if(sqrt(f(l)+f(300))/v1+l/v1+2*300/v1<=time+900/v2){ printf("Case #%d: Yes\n",cas++); } else { printf("Case #%d: No\n",cas++); } } else if(3*v1>v2){//在[3,4)之间拦截 double l=0,r=300,m; for(int i=0;i<100;i++){ m=(l+r)/2; if(sqrt(f(300)+f(m))/v1>(900-m)/v2){ r=m; } else { l=m; } } if(sqrt(f(300)+f(300-l))/v1+sqrt(f(300)+f(l))/v1+900/v1<=time+1200/v2){ printf("Case #%d: Yes\n",cas++); } else { printf("Case #%d: No\n",cas++); } } else{ printf("Case #%d: No\n",cas++); } } return 0;}
^
0_0_27967159_27770.cpp:24:26: error: expected '}' at end of input
0_0_27967159_27770.cpp:24:26: error: expected '}' at end of input
|