80分求助
查看原帖
80分求助
677955
Streetlights楼主2022/2/21 14:59
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int a,b,n;
    cin>>a>>b>>n;
    if (a!=b)
        cout<<(int)((double)a/b*pow(10,n))%10<<endl;
    else
        cout<<"0"<<endl;
    return 0;
}
2022/2/21 14:59
加载中...