Advertisement
Josif_tepe

Untitled

Dec 3rd, 2021
163
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.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a, b, c;
  8.     cin >> a >> b >> c;
  9.     if (b - a -1 > c - b - 1)
  10.     {
  11.         cout << b - a - 1 << endl;
  12.     }
  13.     else {cout << c - b - 1 << endl;}
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement