Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:无限超时啊,,求大神支招、、In Reply To:无限超时啊,,求大神支招、、 Posted by:yang_xiongwei at 2012-07-31 10:23:19 > #include<stdio.h> > int main() > { > int i,n,num; > scanf("%d",&n); > __int64 t; > while(n--) > { > scanf("%d %I64d",&num,&t); > int sum=0; > for(i=1;i<=t;i+=2) > if(t%i==0) > sum+=1; > printf("%d %d\n",num,sum-1); > } > return 0; > } 全部打表 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator