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