Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51469 | littletwleve | 与指定数字相同的数的个数 | C++ | Accepted | 0 MS | 248 KB | 224 | 2024-09-21 23:04:21 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,c=0; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[i]; } cin>>m; for(int j=0;j<n;j++){ if(a[j]==m) c++; } cout<<c; return 0; }