Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
43758 | 刁泓烨 | 【基础题】行李托运费 | C++ | Accepted | 3 MS | 268 KB | 195 | 2023-01-08 20:45:09 |
#include<bits/stdc++.h> using namespace std; int main() { double n; cin>>n; if(n<=20.00){ printf("%.2lf",n*1.68); return 0; } else if(n>20.00){ printf("%.2lf",n*1.98); } }