Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
313995 梁睿煊 【C1-T】计算邮资 C++ 解答错误 0 0 MS 244 KB 226 2025-03-23 18:28:12

Tests(0/2):


#include<bits/stdc++.h> using namespace std; int main(){ int x; char y; int s; cin>>x>>y; if(x<=1000){ s=8; }else{ s=8+ceil((x-1000)/500.0)*4; if(y=='y'){ s+=5.0; cout<<s; } } return 0; }


测评信息: