Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107005 何松羽 22兔子问题 C++ Runtime Error 0 MS 272 KB 211 2025-01-17 10:52:24

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n;int a[n], c, h = 0; cin >> c; for (int i = 1; i <= c; i++) { cin >> a[i]; h += a[i]; } cout<<h*4<<" "<<h*2; return 0; }


Run Info:

*** stack smashing detected ***: ./Main terminated