Run ID:97960

提交时间: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; }