func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long q;     cin >> q;     while (q--) {       long long n, a, b;       cin >> n >> a >> b;       if (a + b >= n)         cout << max(a, b) - (a + b - 1 - n) << endl;       else         cout << min(a, b) + 1 << endl;     }     return 0;   }   