Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88745 张曦 18高度为k的树 C++ Accepted 3 MS 308 KB 302 2024-08-21 10:18:14

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int a,b,d = 0; cin>>a; int c[a]; for(int i = 0; i<a; i++) cin>>c[i]; cin>>b; for(int i = 0; i<a ; i++) { if(c[i] == b) d += 1; } cout<<d<<' '; return 0; }