A.

加加减减即可。

#include<iostream>
#include<cstdio>
#include<string>
#include<cstring>
#include<algorithm>
#include<queue>
#define ll long long
using namespace std;
const int maxn = 105000;
int main(){
    int n;
    ll x,y,z;
    cin>>n;
    for(int i = 1;i <= n;i++){
        cin>>x>>y>>z;
        cout<<max(x-y,x-z)+1<<endl;
    }
 
    return 0;
}
View Code

相关文章:

  • 2022-01-05
  • 2021-11-09
  • 2021-05-17
  • 2022-01-31
  • 2022-01-27
  • 2022-01-13
  • 2021-11-11
  • 2021-10-07
猜你喜欢
  • 2021-11-21
  • 2021-09-07
  • 2021-06-24
  • 2021-06-23
  • 2022-01-27
  • 2022-01-11
相关资源
相似解决方案