提交时间:2020-10-31 18:58:35

运行 ID: 8250

#include<bits/stdc++.h> using namespace std; int x,n,ans; int main(){ cin>>x>>n; int fir; fir=8-x-2; if(fir=-1) fir=0; if(fir>n){ cout<<ans*250; return 0; } ans=fir*250; n=n-8+x; int mid=0; mid=n/7; ans=ans+(mid*5*250); int fin; fin=n%7; if(fin>5) fin=5; ans=ans+(fin*250); cout<<ans; return 0; }