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

谁能告诉我c的全文结束语句应该怎么写

Posted by quanjianan at 2005-07-27 21:43:06 on Problem 2509
#include<stdio.h>
main()
{
  int n,k,m,i;
    scanf("%d%d",&n,&k);
    m=n;
    while (m/k!=0)
     {
       n=n+m/k;
       m=m/k;
     }
    printf("%d\n",n);
  }
}

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