Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- signed main() {
- //freopen("text.in", "r", stdin);
- int n, sum = 0;
- cin >> n;
- for (int x; cin >> x;) {
- cerr << x << endl;
- sum += x;
- }
- int ans = n * (n + 1) / 2 - sum;
- if (!ans) {
- puts("NU");
- } else {
- cout << ans << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement