v 0. Pasted by slipstak2 as cpp at 2015-01-23 05:32:18 MSK and set expiration to never.

Paste will expire never.

  1. #define _CRT_SECURE_NO_WARNINGS
  2.  
  3. #include <set>
  4. #include <cstdio>
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main() {
  10. #ifdef _DEBUG
  11.     freopen("input.txt","r",stdin);
  12.     freopen("output.txt","w",stdout);
  13. #endif
  14.  
  15.  
  16.     int n,cur;
  17.     scanf("%d", &n);
  18.     set<int> mem;
  19.     for (int i = 0 ; i < n; ++i) {
  20.         scanf("%d", &cur);
  21.         mem.insert(cur);
  22.     }
  23.     printf("%d", 15000 - mem.size());
  24.     return 0;
  25. }


Editing is locked.