文章

38

粉丝

56

获赞

64

访问

4.0k

头像
平均值 题解:暴力,这题这么水正确率为什么比好多难题还低?
P1132
发布于2025年3月12日 22:54
阅读数 10

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

int main()
{
    long long a,b;
    cin>>a>>b;
    if((a+b)%2==0)cout<<(a+b)/2;
    else cout<<(a+b-1)/2<<".5";
    return 0;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发