Just a Numble
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3581 Accepted Submission(s): 1797
4 2 5 7 123 123
5 0 8
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
int n,m,tot,tmp,res,x;
std::ios::sync_with_stdio(false);
while (cin >> n >> m) {
tot=0;
res=0;
tmp=1;
while (tot<=m) {
res=tmp%n;
tot++;
x=tmp/n;
tmp=res;
tmp=tmp*10;
}
cout << x << endl;
}
return 0;
}
1455



被折叠的 条评论
为什么被折叠?



