Run ID:93615

提交时间:2024-10-18 17:26:24

#include <bits/stdc++.h> using namespace std; int main() { int L,h = 0,j = 0; cin >> L; for(int i = 1; i <= L; i++) { int l; cin >> l; h += l * 4; j += l * 2; } cout<<h<<j; return 0; }