提交时间:2020-10-31 18:56:01

运行 ID: 8245

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,week,day,sum=0; cin>>a>>b; week=b/7; b=b-week*7; if(a+b>=7) b=7-a; if(b>5) b=5; day=week*5; sum=250*day+250*b; cout<<sum; return 0; }