Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145330 顾文博 22兔子问题 C++ Accepted 0 MS 272 KB 405 2026-01-25 14:49:03

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int s=0,a[10001],m; cin>>m; for(int i=1;i<=m;i++){ cin>>a[i]; s+=a[i]; } cout<<s*4<<' '<<s*2; return 0; }