Promi_38

cf 1163A

Oct 22nd, 2021
669
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits\stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, m;
  8.     cin >> n >> m;
  9.     if(m == 0) cout << 1 << endl;
  10.     else cout << min(m, n - m) << endl;
  11. }
  12.  
RAW Paste Data