|
|
back to boardWA #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????? 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 |
|
|