fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5.  
  6. float bal;
  7. int wid ;
  8. cin>>wid>>bal;
  9. if (bal>=wid+0.5 && wid%5==0 )
  10. {
  11. bal=bal-wid-0.5;
  12.  
  13. }
  14.  
  15. cout<<bal;
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 3100KB
stdin
Standard input is empty
stdout
-1.61577