Jeremiah_

ABC_124 - A - Buttons

Jun 6th, 2019
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. #define SYNC ios::sync_with_stdio(0);
  4. #define F first
  5. #define S second
  6. #define endl '\n'
  7.  
  8.  
  9. using namespace std;
  10.  
  11. using ll = long long int;
  12. using ii = pair<int, int>;
  13. using vii = vector<ii>;
  14. using vi = vector<int>;
  15. using graph = vector<vi>;
  16. const int INF = 0x3f3f3f3f;
  17. const int MAXN = 58;
  18. const ll mod = 1000000007;
  19.  
  20.  
  21.  
  22. int main() {
  23.     SYNC
  24.     int a, b;
  25.     cin >> a >> b;
  26.     cout << max(max(a+a-1, a+b), b+b-1) << endl;
  27.    
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment