Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
336076 | 李俞家骅 | 【C2-6】与指定数字相同的数的个数 | C++ | 通过 | 100 | 1 MS | 252 KB | 188 | 2025-07-25 10:04:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,x,s=0; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>x; if(m==x) s++; } cout<<s; return 0; }