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 Lighting at 2006-03-21 03:06:33 on Problem 2509
In Reply To:不太理解题目意思,哪位解释一下 Posted by:NP at 2006-03-20 22:54:09
#include <stdio.h>
void main()
{
	int n,k,j;
	scanf("%d %d",&n,&k);
	if(k>1)
	{
	   j=n/(k-1)+n-1;
	   printf("%d\n",j);
	}
}
这样没问题吧……
还么还是Wrong Answer??

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