Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138855 万骏博 22兔子问题 C++ Accepted 0 MS 268 KB 232 2025-11-30 11:38:38

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; long long n,o=0,p=0,q=0; int main(){ scanf("%lld",&n); for(int j=1;j<=n;j++){ scanf("%lld",&o); q+=o*4; p+=o*2; } printf("%lld %lld",q,p); return 0; }