| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121237 | 韩潞琪 | 18高度为k的树 | C++ | Runtime Error | 1 MS | 268 KB | 254 | 2025-06-07 10:02:55 |
#include<bits/stdc++.h> using namespace std; int main() { int a[101],n,g,s=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } cin>>g; for(int i=1;i<=n;i++){ if(a[i]==g){ s=s+1; } } cout<<s; return 0; }
Runtime Error:Segmentation fault