Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32754 | lnx | 与指定数字相同的数的个数 | C++ | Accepted | 0 MS | 248 KB | 241 | 2023-12-02 19:31:12 |
#include<bits/stdc++.h> using namespace std; int main() { int a[101]; int n; cin>>n; int k=0; for(int i=0;i<n;i++) cin>>a[i]; int m; cin>>m; for(int i=0;i<n;i++) { if(a[i]==m) k++; } cout<<k; return 0; }