Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6050 | 张昊然 | 【基础题】行李托运费 | C++ | Accepted | 1 MS | 808 KB | 240 | 2021-02-11 16:32:59 |
#include <iostream> #include <cstdio> using namespace std; int main() { double n; cin >> n; if (n <= 20) { printf("%.2lf", n * 1.68); } else { printf("%.2lf", n * 1.98); } return 0; }