fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. double p,r,v;
  7.  
  8. cin>>p>>r;
  9.  
  10. v=p/r;
  11.  
  12. if(v>=0.6)
  13. cout<<"very strong";
  14. else if(v>=0.4)
  15. cout<<"strong";
  16. else if(v>=0.2)
  17. cout<<"normal";
  18. else
  19. cout<<"weak";
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5284KB
stdin
1884 4710
stdout
strong