1 条题解

  • 1
    @ 2025-5-4 20:41:12
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b,c;
    	cin>>a>>b>>c;
    	cout<<fixed<<setprecision(2)<<(float)(a+b)/(c-b);
    	return 0;
    }
    

    第7行要类型转换 整数不能输出小数

    • 1

    信息

    编号
    2352
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    递交数
    93
    已通过
    45
    上传者