Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118606 罗迎甲 22兔子问题 C++ Accepted 3 MS 312 KB 431 2025-05-05 17:09:25

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 m,t=0,y=0,a[10001]={0}; cin>>m; for(int i=0;i<m;i++){ cin>>a[i]; t+=4*a[i]; y+=2*a[i]; } cout<<t<<' '<<y; return 0; }