提交时间:2021-05-22 14:09:21
运行 ID: 62
#include<iostream> #include<cstdio> using namespace std; int main(){ int b,c=8,d; float a; cin>>a>>b; if(a<=1000){ if(b="y"){ c=c+4; } cout<<c; return 0; } if(a>1000){ a=a-1000; b=a/500*4; c=c+b; if(b="y"){ c=c+4; } } cout<<17; }