第一题:

#include <iostream>
#include <vector>
#include <map>
#include <cstring>
#include <string>
#include <algorithm>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    //freopen("input.txt", "r", stdin);
    int a, b, c;
    cin >> a >> b >> c;
    cout << b - c + 1 << endl;
    return 0;
}