|
|
back to boardWA#14 Impossible ! Posted by Mickkie 29 Dec 2012 13:50 #include<stdio.h> double i,j,p,q,per; int main() { scanf("%lf %lf",&p,&q); for (i=1;;i++) for (j=0;j<=i;j++) { per=100*j/i; if (p<per && per<q) { printf("%d",(int) i); scanf(" "); return 0; } } } |
|
|