Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
770 张宸瑞 22兔子问题 C++ Accepted 0 MS 268 KB 258 2023-04-01 14:48:05

Tests(10/10):


Code:

#include <iostream> using namespace std; int main() { int m,x,num_eye=0,num_leg=0; cin>>m; for(int i=0;i<m;i++) { cin>>x; num_eye+=x*2; num_leg+=x*4; } cout<<num_leg<<' '<<num_eye; return 0; }