Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
69106 sh25_ganzy 计算邮资 C++ Wrong Answer 0 MS 240 KB 282 2025-10-10 19:42:19

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


Judgement Protocol: