Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
69105 sh25_ganzy 计算邮资 C++ 解答错误 0 MS 244 KB 282 2025-10-10 19:41:44

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int w,m; char c; bool b; cin>>w>>c; b=(c=='y'); if(w<=1000){ m=5; }else{ m=5+4*ceil(w/500); } if(b==true){ m+=5; } cout<<m; return 0; }


测评信息: