2019-05-2110:15:00加油,加油 !!! #include <bits/stdc++.h> using namespace std; int main() { int n, a, b; while(~scanf("%d %d %d", &n, &a, &b)) { a = n - a; if(a >= b + ) { cout << b + ; } else { cout << a; } cout << endl; } return ; }