Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88070 | 陈昊然 | 19斯诺克比赛 | C++ | Accepted | 1 MS | 268 KB | 334 | 2024-08-17 12:07:25 |
#include<bits/stdc++.h> using namespace std; int n,a,b,c,d,e,t[101],p1,yg; int main() { for(int i=1;i<=7;i++){ cin>>p1; t[i]=p1; } for(int i=7;i>=1;i--){ if(t[i]>0){ t[i]+=t[1]; break; } } n=t[2]*2; a=t[3]*3; b=t[4]*4; c=t[5]*5; d=t[6]*6; e=t[7]*7; cout<<t[1]+n+a+b+c+d+e; return 0; }