Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7123 刘芃伽 19斯诺克比赛 C++ Wrong Answer 0 MS 260 KB 341 2025-04-05 10:16:09

Tests(0/5):


Code:

#include<bits/stdc++.h> #include<cstdio> using namespace std; int main(){ int a[8]={},_max,s=0; for(int i=1;i<=7;i++){ cin>>a[i]; if(a[i]>0) _max=i; } //先打红球 s+=a[1]*(1+_max); //再打彩球 for(int i=2;i<=7;i++){ s=s+a[i]; } cout<<s<<endl; return 0; }


Run Info:

------Input------
2 0 1 0 3 0 2
------Answer-----
48
------Your output-----
22