F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 10:17:14, Gzip enabled