ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1283. Dwarf

WA #3 Where is my mistake?????
Posted by enick 2 Apr 2008 15:05
#include <string.h>
#include <stdio.h>
__int64 N,M;
int i,j;
__int64 k;
double CGB,temp;

int main()
{
 scanf("%I64d%I64d%lf",&N,&M,&CGB);
 if (N<=M)
{
printf("0\n");
return 0;
}
 k=0;
 while (N>=M)
 {
   temp=(CGB/100)*N;
   N-=temp;
   k++;
  }

 printf("%I64d\n",k);

 return 0;
}
Re: WA #3 Where is my mistake?????
Posted by jhgkhdlkjsgfsjhfdhkhj 11 Apr 2008 21:08
SORRY,EXCOURSE ME FOR MY ENGLISH AND STUPID MISTAKE!
Now I have AC with 0.001 sec and 136 kb.

Edited by author 11.04.2008 21:10