Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

无限超时啊,,求大神支招、、

Posted by yang_xiongwei at 2012-07-31 10:23:19 on Problem 2853
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator