| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121248 | 龚睿晨 | 18高度为k的树 | C++ | Runtime Error | 1 MS | 272 KB | 248 | 2025-06-07 10:08:02 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[1001],N,K,sum=0; cin>>N; for(int i=0;i<N;i++) { cin>>a[i]; } cin>>K; for(int i=0;i<N;i++) { if(a[i]==K) { sum++; } } cout<<sum; return 0; }
Runtime Error:Segmentation fault