Advertisement
artemgf

Задача G. Задачи с Тимуса

Nov 18th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <iostream>
  3. #include <conio.h>
  4. #include <string>
  5. #include <algorithm>
  6. #include <vector>
  7. #include <map>
  8. #include <queue>
  9. #include <set>
  10. #include <stack>
  11.  
  12. using namespace std;
  13.  
  14. typedef long long ll;
  15.  
  16. int main()
  17. {
  18.     ll a, b, c;
  19.     cin >> a >> b >> c;
  20.  
  21.     cout << min(min(b - c, a - b), a);
  22.     _getch();
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement