提交时间:2020-10-31 19:07:54
运行 ID: 8279
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,z=0; cin>>x>>n; if(x<=5) z=5-x+1,n-=z; else n=n-(7-x); int p=n/7,q=n%7; n=n-2*p-q; z+=n; if(q<=5) z+=q; else z+=5; z*=250; cout<<z; return 0; }