提交时间:2024-01-27 16:21:31
运行 ID: 38536
#include<iostream> using namespace std; int main() { int wei,a; char qui; cin>>wei>>qui; if(wei<=1000) a=8; else a=int((wei+499)/500)*4; if(qui=a) a+=5; cout<<a; }