提交时间:2024-02-22 21:25:58

运行 ID: 41663

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int a; cin >> a; int b; cin >> b; 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; }