1 条题解

  • 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

    信息

    ID
    197
    时间
    1000ms
    内存
    64MiB
    难度
    5
    标签
    递交数
    134
    已通过
    49
    上传者