#include<iostream> using namespace std; int main() { int a,s=8,j; char b; cin>>a>>b; if(a>1000){ j=(a-1000)/500; if((a-1000)%500<500){ j++; s=s+4*j; } } if(b=='y'){ s=s+5; } cout<<s; return 0; }
各位大佬帮我看看哪里错了吧