终于有一个知识点AC了
原题链接:30519.【PY】很不简单的一道题目2024-12-14 10:57:59
发布于:湖南
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b;
cin>>a>>b;
double sum = a + b;
double diff = a - b;
double product = a * b;
double quotient = a*1.0/b;
cout << fixed << setprecision(1) << sum << endl;
cout << fixed << setprecision(1) << diff << endl;
cout << fixed << setprecision(1) << product << endl;
cout << fixed << setprecision(1) << quotient << endl;
return 0;
}
这里空空如也
有帮助,赞一个