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

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

Posted by 1004115224 at 2012-08-20 21:28:36 on Problem 2853
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:
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