提交时间:2021-05-22 21:26:46
运行 ID: 142
#include <iostream> #include <cstdio> using namespace std; int main(){ int n,jiaji; cin>>n>>jiaji; int cost; if(cost<=1000){ cost=8; } int s=0; if(n>1000){ if((n-1000)%500==0){ s=cost+(n-1000)/500*4; }else{ s=cost+(n-1000)/500*4+4; } } if(jiaji==1){ s=s+5; } cout<<s; }