artemgf

Утро сорокножки

Mar 18th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <math.h>
  4. #include <string>
  5. #include <algorithm>
  6.  
  7. using namespace ::std;
  8.  
  9. int main()
  10. {
  11.     int a=0, b;
  12.  
  13.     cin >> a >> b;
  14.  
  15.     cout << max(120+2*(b-40), 119+2*(a-40));
  16.  
  17.     _getch();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment