Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118880 | 吴梓玄 | 19斯诺克比赛 | C++ | Accepted | 1 MS | 280 KB | 487 | 2025-05-10 17:29:32 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d,e,f,g; int s=0; cin>>a>>b>>c>>d>>e>>f>>g; for(int i=0;i<a;i++){ if(g!=0){ s+=8; } else{ if(f!=0){ s+=7; } else{ if(e!=0){ s+=6; } else{ if(d!=0){ s+=5; } else{ if(c!=0){ s+=4; } else{ if(b!=0){ s+=3; } else{ s+=1; } } } } } } } s+=b*2+c*3+d*4+e*5+f*6+g*7; cout<<s; return 0; }