| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 137278 | 杨泳文 | 求分数精确值1 | C++ | Accepted | 100 | 0 MS | 252 KB | 275 | 2024-03-09 17:53:03 |
#include <bits/stdc++.h> using namespace std; int q[101]; int main(){ int m, n; scanf("%d%*c%d", &m, &n); printf("%d/%d=0.", m, n); for(int i = 1; i <= 100; i++){ m *= 10; q[i] = m/n; m = m % n; } for(int i = 1; i <= 100; i++){ cout << q[i]; } return 0; }