Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110282 | 吴梓玄 | 18高度为k的树 | C++ | Accepted | 4 MS | 308 KB | 240 | 2025-02-15 17:08:05 |
#include <bits/stdc++.h> using namespace std; int main() { int x,y,s=0; cin>>x; int a[x+5]; for(int i=1;i<=x;i++){ cin>>a[i]; } cin>>y; for(int i=1;i<=x;i++){ if(a[i]==y){ s=s+1; } } cout<<s; return 0; }