Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77756 sh25_shengmy 计算邮资 C++ 通过 0 MS 240 KB 361 2025-12-26 14:45:38

Tests(1/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=8; }else{ if(w%500==0){ m=8+4*(w/500-2); }else{ m=8+4*(w/500-1); } } if(b==true){ m+=5; } cout<<m; return 0; }


测评信息: