问题标题: 中秋月饼

0
0

0
0
0
0
0
朱小川
朱小川
缔造者
缔造者
  • #include<iostream>
  • #include<cstdio>
  • using namespace std;
  • int main(){
  • double a,b,c;
  • cin>>a>>b>>c;
  • printf("%.1f %.1f\n%.1f",a*,b*,c*);
  • return 0;
  • }
  • 这是中秋月饼一的;

      

 

     

  • #include<iostream>
  • #include<cstdio>
  • using namespace std;
  • int main(){
  • double a,b,c,d,e,f;
  • cin>>a>>b>>c>>d>>e>>f;
  • printf("%.1f",a*+b*+c*+d*+e*+f*);
  • return 0;
  • }
  • 这是二的;

        这两个代码有很多空着的,这些空着的按题目要求写就行了

 

0
颜咏春
颜咏春
中级光能
中级光能

x=4.5*a+5.5*b+3.5*c+4.0*d+5.0*e+4.5*f;

0
0
0
0
0
黄昊轩
黄昊轩
新手守护
新手守护
readln(a,b,c,d,e,f);
a1:=4.5;
a2:=5.5;
a3:=3.5;
a4:=4.0;
a5:=5.0;
a6:=4.5;
writeln((a*a1+b*a2+c*a3+d*a4+e*a5+f*a6):3:1);

核心部分

 

 

 

 

1128   中秋月饼

 

Accepted:100分

 

 

黄昊轩的测评结果:

 

测试点#1测评结果 : Accepted时间 : 0ms
测试点#2测评结果 : Accepted时间 : 0ms
测试点#3测评结果 : Accepted时间 : 0ms
测试点#4测评结果 : Accepted时间 : 0ms
测试点#5测评结果 : Accepted时间 : 0ms
测试点#6测评结果 : Accepted时间 : 0ms
测试点#7测评结果 : Accepted时间 : 0ms

0
杨陈卓
杨陈卓
新手天翼
新手天翼

    printf("%.1f",4.5*a+5.5*b+3.5*c+4.0*d+5.0*e+4.5*f);

0
梁锦程
梁锦程
高级光能
高级光能
printf("%.1f",4.5*a+5.5*b+3.5*c+4.0*d+5.0*e+4.5*f);

 

0
张月柔
张月柔
初级守护
初级守护

x=4.5*a+5.5*b+3.5*c+4.0*d+5.0*e+4.5*f;

s:=a1*4.5+a2*5.5+a3*3.5+a4*4+a5*5+a6*4.5;
  write(s:0:1);

核心!!!

0
李子杰
李子杰
资深光能
资深光能

//printf 时保留    :4.35*a,5.45*b,3.65*c

 

  • 2292这一题
  • 1,用int定义三个整数 
  • 2,加“#include<cstdio>“
  • 3,保留一位小数输出(先空格,再换行)
李子杰在2020-12-30 21:52:04追加了内容

1128这一题

1,用long long int 定义六个变量,输入

2,加#include<cstdio>

3,保留一位小数

//保留(4.5*a)+(5.5*b)+(3.5*c)+(4.0*d)+(5.0*e)+(4.5*f)

0
欧阳语聪
欧阳语聪
资深守护
资深守护
double a=4.35,b=5.45,c=3.65,d,e,f;
    cin>>d>>e>>f;
    printf("%.1f %.1f\n%.1f",a*d,b*e,c*f);
0
0
0
0
陈天宇
陈天宇
资深守护
资深守护
s:=a1*4.5+a2*5.5+a3*3.5+a4*4+a5*5+a6*4.5;
  write(s:0:1);

 

0
臧启亚
臧启亚
初级光能
初级光能

核心代码:

s:=a1*4.5+a2*5.5+a3*3.5+a4*4+a5*5+a6*4.5;
  write(s:0:1);
0
吉逸轩
吉逸轩
初级光能
初级光能

听我说,不要水题了

 

 

 

PS:我不是水帖的

0
0
刘振波
刘振波
初级光能
初级光能
x=4.5*a+5.5*b+3.5*c+4.0*d+5.0*e+4.5*f;  

1.要用float类型定义x,还要加上<cstdio>

2.这题是把所有月饼价格加起来,所以要定义一些数,让他们和这些数乘。

 

0
我要回答