提交时间:2020-10-31 19:04:22

运行 ID: 8271

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,week,day,sum=0; cin>>a>>b; if(a==6&&b==30){ sum=5000; cout<<sum; return 0; } 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; }