小白1-B--pow exp


上一题积累的经验就可以用上了哈哈哈
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main() {
int t = 0;
cin >> t;
int a, b, c;
while (t--) {
cin >> a >> b >> c;
double s;
s = pow(a, exp(1));
s /= b;
cout << fixed << setprecision(c) << s << endl;
}
return 0;
}

浙公网安备 33010602011771号