| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123381 | 袁龙浩 | 19斯诺克比赛 | C++ | Wrong Answer | 1 MS | 276 KB | 605 | 2025-06-29 15:15:30 |
#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() using namespace std; int main(){ int a[8]={0},max=0; for(int i=1;i<=7;i++){ cin>>a[i]; } if(a[1]!=0){ max+=a[1]; for(int i=7;i>=2;i--){ if(a[i]!=0){ max+=a[i]*i; a[1]=0; break; } } } for(int i=2;i<=7;i++){ max+=a[i]*i; } cout<<max; return 0; }
------Input------
5 1 1 1 3 1 2
------Answer-----
84
------Your output-----
63