| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 43423 | wuxinyue | 求小数的某一位 | C++ | Accepted | 0 MS | 244 KB | 244 | 2024-03-15 19:45:11 |
#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; }