Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
103250 | 夏梓瑞 | 22兔子问题 | C++ | Wrong Answer | 0 MS | 268 KB | 443 | 2024-12-28 15:07:36 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min()\fabs() #include<ctime> #include<cstdlib> using namespace std; int main(){ int m,x,sum=0; cin>>m; for(int i=1;i<m;i++){ cin>>x; sum+=x; } cout<<sum*4<<' '<<sum*2; return 0; }
------Input------
75 46 89 44 75 76 90 26 93 22 36 31 22 71 25 14 59 26 81 20 43 95 14 82 52 84 82 84 24 38 64 55 23 40 38 75 15 40 10 8 48 73 92 10 1 52 95 22 63 30 90 83 84 13 12 13 43 38 79 89 18 66 86 77 72 35 61 49 40 94 69 83 38 3 44 34 34
------Answer-----
15244 7622
------Your output-----
15108 7554