摘要: 题:http://acm.hdu.edu.cn/showproblem.php?pid=1042转自:http://www.pan-apps.com/?p=136PS:思路分析:肯定是个大数,而且longlong型的也无法保存,所以把数字拆开分别保存在数组里思路如下:#include<iostream>using namespace std;int main(){ int n,c; int i,j,k,count; int a[100000]; while(cin>>n) { a[0]=1; count=0; for(i=... 阅读全文
posted @ 2012-04-21 11:08 川川.aug 阅读(130) 评论(0) 推荐(0) 编辑