Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
326754 顾子丞 【C2-6】与指定数字相同的数的个数 C++ 通过 100 1 MS 252 KB 196 2025-06-14 14:46:19

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main(){ double n,m,a,cnt=0; cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a; if(a==m){ cnt++; } } cout<<cnt; return 0; }


测评信息: