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 476855 at 2011-09-11 16:08:55 on Problem 2917
#include <stdio.h>
#include <conio.h>
int m,n,i,j,t,k;
int main(){
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
		 m=0;
		scanf("%d",&k);
		for(j=k+1;j<=2*k;j++)
			if((k*j)%(j-k)==0)
                 m++;
		printf("Scenario #%d:\n",i+1);
		printf("%d\n\n",m);
	}
	getch();
	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