contest/85/B

#include<bits/stdc++.h>
using namespace std;
int main(){
    int t;
    int a,b,c;
    cin>>t;
    while(t--){
        cin>>a>>b>>c;
        cout<<fixed<<setprecision(c)<<pow(a,exp(1))/b<<endl;
    }
}

exp(1)该函数返回 e 。
cout<<fixed<<setprecision(c);保留n位小数
endl将答案分行
pow(a,b);表示图片说明