代码1
2022-10-06 17:15
views:
710
source:
唐艺闻
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, sum = 8;
char c;
cin >> n >> c;
if(n > 1000){
if((n-1000)%500 > 0){
sum += 4;
}
sum += (n-1000)/500*4;
} if(c == 'y'){
sum += 5;
} cout << sum;
return 0;
}
Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.