0
已解决
武瑞宸
高级守护
高级守护
1582怎么写?(附WA代码)
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
double a,b;
cin>>a;
if(a>3)
{
b=a*2.3;
}
if(a==3)
{
b=a*6;
}
if(a<3)
{
b=a*0.7;
}
cout<<a;
printf("%.1f",b);
return 0;
}
武瑞宸在2020-01-12 15:09:27追加了内容
60分!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!