2 条题解
-
0来怡辰 LV 4 @ 2021-12-12 21:35:58
#include <cstdio>
using namespace std;
int main()
{
int x,y,z;
float price;
scanf("%d,%d,%d",&x,&y,&z);
price=x*99+y*99*0.5+z*99*0.55;
printf("%.2f",price);
return 0;
} -
02021-11-01 08:36:00@
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int x,y,z;
float s;
scanf("%d %d %d", &x,&y,&z);
s=x*99+y*49.5+z*54.45;
printf("%.2f",s);
return 0;
}
- 1