| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 151851 | 刘杨国卿 | 18高度为k的树 | C++ | Runtime Error | 1 MS | 268 KB | 251 | 2026-04-19 11:24:08 |
#include<bits/stdc++.h> using namespace std; int main(){ long long n,a[100],m,s=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } cin>>m; for(int i=1;i<=n;i++){ if(a[i]==m){ s++; } } cout<<s; return 0; }
Runtime Error:Segmentation fault