文章

81

粉丝

0

获赞

275

访问

10.6k

头像
平均值 题解:怎么直接这样就行
P1132
发布于2025年3月15日 02:55
阅读数 188

#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b;
	cin>>a>>b;
	cout<<(a/2+b/2)<<endl;
	return 0;
}

 

登录查看完整内容


登录后发布评论

1 条评论
阿灿
2025年3月24日 21:16

#include<bits/stdc++.h>
using namespace std;
int main(){
	double a,b;
	cin>>a>>b;
	printf("%g",(a+b)/2);
}

 

赞(0)