Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
71155 sh25_wangtaojie 求小数的某一位 C++ Accepted 0 MS 244 KB 307 2025-10-24 15:21:01

Tests(1/1):


#include <iostream> using namespace std; int main() { int a, b, n; cin >> a >> b >> n; a %= b; for (int i = 1; i <= n; i++) { a *= 10; if (i == n) { cout << a / b << endl; break; } a %= b; } return 0; }


Judgement Protocol: