| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145339 | 杨登博 | 22兔子问题 | C++ | Accepted | 0 MS | 276 KB | 427 | 2026-01-25 14:54:41 |
#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,i,x[101],t=0,y=0; cin>>m; for(int i=1;i<=m;i++){ cin>>x[i]; y+=x[i]*2; t+=x[i]*4; } cout<<t<<" "<<y; return 0; }