fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. cout<<setprecision(4);
  7. float a,b,c,x;
  8. cin>>a>>b>>c;
  9. if (a!=0){x=(c-b)/a;cout<<x;}
  10. else if (b==c) {cout<<"NWR";}
  11. else if (b!=c){cout<<"BR";}
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4572KB
stdin
Standard input is empty
stdout
-inf