Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
444075 任虞昊 【C1-T】冷饮的价格 C++ 通过 100 1 MS 256 KB 372 2026-06-10 18:37:42

Tests(4/4):


#include<iostream> #include<iomanip> using namespace std; int main(){ int n; cin>>n; if(n>=30){ cout<<fixed<<setprecision(1)<<n*1.0<<endl; } if(n>=20&&n<30){ cout<<fixed<<setprecision(1)<<n*1.2<<endl; } if(n>=10&&n<19){ cout<<fixed<<setprecision(1)<<n*1.5<<endl; } if(n<10){ cout<<fixed<<setprecision(1)<<n*1.8<<endl; } return 0; }


测评信息: