测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A62027. 2023年信奥赛CSP-J1普及组初赛阅读程序1:01 #include<iostream>

编程题

题目描述

2023年信奥赛CSP-J1普及组初赛阅读程序1:

01 #include<iostream>
02 #include<cmath>
03 using namespace std;
04 
05 double f(double a,double b,double c){
06     double s=(a+b+c)/2;
07     return sqrt(s*(s-a)*(s-b)*(s-c));
08 }
09
10 int main(){
11    cout.flags(ios::fixed);
12    cout.precision(4);
13    
14     int a,b,c;
15    cin>>a>>b>>c;
16    cout<<f(a,b,c)<<endl;
17    return 0;
18 }

假设输入的所有数都为不超过1000的正整数,完成下面的判断题和单选题: