1 solutions

  • 0
    @ 2026-2-10 10:29:57

    #include <bits/stdc++.h> using namespace std;

    int main() { long long n, a, b; cin >> n; b = (1 + n) * n / 2; for (int i = 1; i < n; i++) { cin >> a; b -= a; } cout << b; return 0; }

    • 1

    Information

    ID
    197
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    5
    Tags
    # Submissions
    134
    Accepted
    49
    Uploaded By