海伦公式过样例出错?Wa声一片
查看原帖
海伦公式过样例出错?Wa声一片
1576650
违规用户名1576650楼主2024/12/22 11:41

s=(a+b+c)/2s = (a + b + c) / 2

#include<bits/stdc++.h>
using namespace std;

int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	float s;
	s = (a + b + c) / 2;
	printf("%.1f",s);
	return 0;
}

2024/12/22 11:41
加载中...