提交时间:2024-08-20 17:00:55
运行 ID: 169755
#include<iostream> using namespace std; int a[1100]; int main(){ int n; long long s = 0; cin>>n; for(int i = 1; i <= n; i++){ cin>>a[i]; s += a[i]*3; } cout<<s; return 0; }