| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140973 | 杜禹轩 | 19斯诺克比赛 | C++ | Wrong Answer | 0 MS | 268 KB | 277 | 2025-12-20 15:01:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n=0,a[8]; cin>>n; for(int i=1;i<8;i++){ cin>>a[i]; } if(a[1]!=0){ int i=7; while(a[i]==0)i--; n+=a[1]*(i+1); } for(int i=2;i<=7;i++){ n+=a[i]*i; } cout<<n; return 0; }
------Input------
5 1 1 1 3 1 2
------Answer-----
84
------Your output-----
46