【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> #include<cstdio> using namespace std; int main(){ int s; float f=0,ts[11]={0,28.9,32.7,45.6,78,35,86.2,27.8,43,56,65}; for(int i=1;i<=10;++i) { cin>>s; f+=ts[i]*s; } printf("%.1f",f); return 0; } /*网pass*/
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:387660 本月:27 上月:1061 今日:6 昨日:3 当前在线:1人