Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
787 邓小龙 22兔子问题 C++ Accepted 0 MS 308 KB 236 2023-04-08 12:24:05

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ int m,x[10001]={},l=0,e=0; cin>>m; for(int i=1;i<=m;i++){ cin>>x[i]; l+=x[i]*4; e+=x[i]*2; } cout<<l<<" "<<e; return 0; }