- 一级
F
- 2023-7-31 16:22:11 @
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
char c;
cin>>a>>c;
b=8;
a=a-1000;
if(a>0)
{
b=b+4*(a/500);
if(a%500>0)
{
b=b+4;
}
}
if(c=='y')
{
b=b+5;
}
cout<<b;
return 0;
}
0 comments
No comments so far...