top1编程
← 返回题目
题解

【入门】冷饮的价格?

1 条题解

  • 0
    @ 2026-7-28 22:09:39
    #include<iostream>
    #include <iomanip>
    using namespace std;
    int main(){
    	int x,y;
    	cin>>x>>y;
    	cout<<fixed<<setprecision(1)<<((x-1)*2.5+y*1.5)<<endl;
    }
    
    • 1