General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
134767136 Practice:
kalashj93
137B - 13 C++14 (GCC 6-32) Wrong answer on test 18 30 ms 1040 KB 2021-11-09 17:17:50 2021-11-09 17:17:51
→ Source
#include<iostream>
#include<vector>
using namespace std;
int main ()
{
    int value, n,count=0,i;
    cin>>n;
    vector<int> arr={0};
   for(i=0;i<n;i++)
   {
        cin>>value;
        if(value>n)
        count++;
       else if(arr[value]==1)
       count++;
       else
       arr[value]=1;
   }
   cout<<count<<"\n";
   return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details