Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164465 王垚植 【基础题】邮件收费 C++ Accepted 1 MS 272 KB 227 2026-11-03 19:12:40

Tests(4/4):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double w,cost; cin>>w; if (w<=1){ cost=1.5; } else{ cost=1.5*w+(w-1)*0.8; } printf("%.1lf",cost); return 0; }