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 |
无限超时啊,,求大神支招、、#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