Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99968 | 李谨睿 | 22兔子问题 | C++ | Accepted | 1 MS | 272 KB | 218 | 2024-12-01 12:19:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,s=0; cin>>m; int a[m]; for(int i=0;i<=m-1;i++){ cin>>a[i]; } for(int i=0;i<m;i++){ s=s+a[i]; } cout<<s*4<<" "<<s*2; return 0; }