摘要: 大数除,有了心得hdu2117是让求小数点某一位小数,仔细分析相当于大数除以一个小数(因为要求的某一位的位置可能非常靠后)代码可以向下面:#include <iostream>using namespace std;int main(){ int n,m,f,x,i; while(cin>>n>>m) { f=10; if(n==1) {cout<<0<<endl;continue;} for(i=0;i<m;i++) { x=f/n; //关理三 f=f... 阅读全文
posted @ 2011-10-30 14:09 orangeblog 阅读(245) 评论(0) 推荐(0) 编辑