Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
21149 | xingru | 与指定数字相同的数的个数 | C++ | Accepted | 0 MS | 244 KB | 184 | 2023-06-23 15:17:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int N,m=0,n,a=0; cin>>N; cin>>m; for(int i=0;i<N;i++){ cin>>n; if(n==m) a++; } cout<<a; return 0; }