提交时间:2024-03-15 19:45:11
运行 ID: 43423
#include<bits/stdc++.h> using namespace std; int main(){ double a; cin >> a; double b; cin >> b; int n; cin >> n; double x = a/b; int i = 1; while(i<=n){ x *= 10; i++; } int r = x; cout << r % 10; return 0; }