Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
323020 | 沈心 | 【C1-9】乘车费用 | C++ | 通过 | 100 | 2 MS | 248 KB | 164 | 2025-05-17 15:07:46 |
#include<iostream> using namespace std; int main(){ int N; cin>>N; if (N<=3){ cout<<"14"; } else { cout<<14+(int)((N-3)*2.3); } return 0; }