| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 82588 | sh25_chenyj | 与指定数字相同的数的个数 | C++ | Accepted | 0 MS | 244 KB | 269 | 2026-01-15 19:36:04 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int cnt = 0, ls[n]; for(int i = 0; i < n; i++){ cin >> ls[i]; } int x; cin>>x; for(int i = 0; i < n; i++){ if(ls[i] == x){ cnt ++; } } cout<<cnt; return 0; }