摘要:
#include<iostream>#define MAX 1000000using namespace std;int compute(unsigned int n){ int count=0,max=MAX; while(n/max==0) { max/=10; count++; } return 7-count;}int main(){ int i,m,num; unsigned int n,div; cin>>m; while(m--) { cin>>n; div=1; ... 阅读全文
posted @ 2012-09-20 22:28
Afraid
阅读(145)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;int porc(int n,int m){ int a[3],b[3],flag[3]={0},count=0; a[2]=n%10; a[1]=(n/10)%10; a[0]=n/100; b[2]=m%10; b[1]=(m/10)%10; b[0]=m/100; if(a[2]+b[2]>=10) { count++; flag[2]++; } if(a[1]+b[1]+flag[2]>=10) { ... 阅读全文
posted @ 2012-09-20 15:37
Afraid
阅读(94)
评论(0)
推荐(0)

浙公网安备 33010602011771号