Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109853 | 胡海峰老师 | 22兔子问题 | C++ | Accepted | 1 MS | 272 KB | 279 | 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 */