社区讨论
80pts求调!!!悬关
B2048计算邮资参与者 2已保存回复 2
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 2 条
- 当前快照
- 1 份
- 快照标识符
- @mhjtt9o4
- 此快照首次捕获于
- 2025/11/04 08:24 4 个月前
- 此快照最后确认于
- 2025/11/04 08:24 4 个月前
CPP阿米诺斯
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,s=8;
char c;
cin>>x>>c;
if(c=='y') s+=5;
x-=1000;
if(x<=0) return 0;
s+=x/500*4;
if(x%500) s+=4;
cout<<s;
return 0;
}
回复
共 2 条回复,欢迎继续交流。
正在加载回复...