fork download
  1. #include <cstdio>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. double a, b, c, l;
  8. while(1) {
  9. scanf("%lf", &a);
  10. if (a==0)
  11. break;
  12. scanf("%lf", &b);
  13. scanf("%lf", &c);
  14. l=floor(sqrt((a*b*100)/c));
  15. printf("%.0lf\n", l);
  16.  
  17. }
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 15232KB
stdin
8 10 20
1 10 100
10 3 100
5 5 25
50 30 89
800 30 10
35 32 1
999 999 99
1000 1000 100
1 1 1
421 213 53
321 634 87
87 424 43
323 535 90
0
stdout
20
3
5
10
41
489
334
1004
1000
10
411
483
292
438