Run ID:97959

提交时间:2024-11-16 23:45:03

#include<iostream> using namespace std; int main(){ int a[7],h,y,g,z,l,f,b,two,tree; cin>>a[7]; cin>>h; cin>>y; cin>>g; cin>>z; cin>>l; cin>>f; cin>>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; }