题解 | #加减# B.Austin Love Math
加减
https://ac.nowcoder.com/acm/contest/54633/A
同理计算
..... 则
注意
double calc(int x , int t){
return 1.00/sqrt( t + 1.00/x/x);
}
void solve(){
int x,t;cin>>x>>t;
cout<<calc(x,t + 1)<<endl;
}
加减
https://ac.nowcoder.com/acm/contest/54633/A
同理计算
..... 则
注意
double calc(int x , int t){
return 1.00/sqrt( t + 1.00/x/x);
}
void solve(){
int x,t;cin>>x>>t;
cout<<calc(x,t + 1)<<endl;
}
相关推荐