提交时间:2025-12-19 15:45:21

运行 ID: 76683

#include<bits/stdc++.h> using namespace std; int main() { double c; int a; char b; cin>>a>>b; if(a>1000) c=8.0; else c=(8+(500-(a-1000)%500)+(a-1000)/500)*1.0; if(int(b)==121) cout<<c+9; else cout<<c; }