| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 326759 | 沈心 | 【C2-6】与指定数字相同的数的个数 | C++ | Accepted | 100 | 3 MS | 244 KB | 196 | 2025-06-14 14:46:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,z,a,cnt=0; cin>>n; cin>>z; for(int i=1;i<=n;i++){ cin>>a; if(a==z){ cnt++; } } cout<<cnt; return 0; }