fork(1) download
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. float a, b, c, x;
  7.  
  8. int main()
  9. {
  10. cin >> a >> b >> c;
  11.  
  12. if ((a==0)&&((c-b)!=0)) {cout<<"BR"<<endl;}
  13. else if ((a==0)&&(c-b)==0) {cout<<"NWR"<<endl;}
  14. else
  15. {
  16. x=(c-b)/a;
  17. cout << round(x*100)/100 << endl;
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
NWR