3 solutions
- 1
Information
- ID
- 38
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 165
- Accepted
- 84
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,d,c=0,f=0;
cin>>a>>b;
while (a>c){
cin>>d;
if (d==b){
f++;
}
c++;
}
cout<<f;
return 0;
}