Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56764 | 许兴平 | 与指定数字相同的数的个数 | C++ | Accepted | 0 MS | 248 KB | 212 | 2024-11-15 19:31:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; int a[n],result=0; for(int i=0;i<n;i++){ cin>>a[i]; if(a[i]==m){ result+=1; } } cout<<result; return 0; }