Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120422 | 刘珩宇 | 22兔子问题 | C++ | Accepted | 1 MS | 276 KB | 390 | 2025-05-25 18:19:03 |
#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,s=0,x,y,i; cin>>m; int a[m]={0}; for(i=0;i<m;i++){ cin>>a[i]; s+=a[i]; } x=s*4; y=s*2; cout<<x<<" "<<y; return 0; }