竞赛
考级
#include<iostream> using namespace std; int main(){ int n,m,sum=0,a; cin>>n>>m; for (int i = 1;i<=n;i++){ cin>>a; if(a==m){ sum+=1; }else{ continue; } }cout<<sum; return 0; }
许一凡fan