Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97960 | 邹昊辰 | 19斯诺克比赛 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 271 | 2024-11-16 23:51:01 |
#include<iostream> using namespace std; int main(){ int a[7],h,y,g,z,l,f,b,two,tree; cin>>a[7]>>h>>y>>g>>z>>l>>f>>b; for(int i=1;i=h;i++){ two=h*1+y*2+g*3+z*4+l*5+f*6+b*7; } if(h==0){ tree=b*7+f*6+l*5+z*4+g*3+y*2; } cout<<two+tree; return 0; }