Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1.  
  2. // F. Благотворительность в царстве-государстве - 1
  3. #include    <math.h>
  4. #include   <iomanip>
  5. #include  <iostream>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.  
  11.  int a,b,c,d,n = {0};
  12.  
  13.  cin >> a >> b >> c >> d;
  14.  cin >> n;
  15.  
  16.  a -= n;
  17.  b -= n;
  18.  c -= n;
  19.  d -= n;
  20.  
  21.  cout << "A:" << a << " B:" << b << " C:"  << c << " D:"  << d << endl;  
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement