Paste will expire never.
- #define _CRT_SECURE_NO_WARNINGS
- #include <set>
- #include <cstdio>
- #include <iostream>
- using namespace std;
- int main() {
- #ifdef _DEBUG
- freopen("input.txt","r",stdin);
- freopen("output.txt","w",stdout);
- #endif
- int n,cur;
- scanf("%d", &n);
- set<int> mem;
- for (int i = 0 ; i < n; ++i) {
- scanf("%d", &cur);
- mem.insert(cur);
- }
- printf("%d", 15000 - mem.size());
- return 0;
- }
Editing is locked.