fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int w,c;
  8.  
  9. cin >> w >> c;
  10.  
  11. if(w-(c*2) <= 0){
  12. cout << 0;
  13. }
  14. else{
  15. cout << w-(c*2);
  16. }
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty