Run ID:109853

提交时间:2025-02-12 21:47:56

#include <iostream> using namespace std; int a[1008]; int main(){ int m; cin>>m; for(int i=1;i<=m;i++) cin>>a[i]; int tot = 0; for(int i=1;i<=m;i++) tot += a[i]; cout<< tot*4 << " "<< tot*2; return 0; } /*Input 5 8 2 3 4 6 Output 92 46 */