#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行要类型转换 整数不能输出小数
使用您的 众创得优编程 通用账户