Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82588 sh25_chenyj 与指定数字相同的数的个数 C++ 通过 0 MS 244 KB 269 2026-01-15 19:36:04

Tests(1/1):


#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; }


测评信息: