提交时间:2021-05-22 14:28:26
运行 ID: 75
#include<iostream> using namespace std; int main() { int a; cin>>a; int b; int c; int d; cin>>d; int a1=0,a2=0,a3=0; if(a<=1000) { a1=8; } else { if(a>1000) { a1=8; b=a-1000; if(b<500) { a2=4; } } } if(d='y') { a3=5; } cout<<a1+a2+a3; }