Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37662 yuzhengxun 计算邮资 C++ 通过 1 MS 252 KB 215 2024-01-22 15:54:37

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { char y; int n,m; cin>>n>>y; m+=8; if(n>1000){ m+=(ceil((n-1000)*1.0/500)*4); } if(y=='y'){ m+=5; } cout<<m; return 0; }


测评信息: