40分求助
查看原帖
40分求助
981323
sui13127198996楼主2023/5/3 14:35
#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,n,a,b,weekend,time;
	cin>>x>>n;
	if(x==7){
	a=((x+n)/7)-1;
	} else{
		a=((x+n)/7);
	}
	b=((x+n)/8);
	weekend=a+b;
	time=(n-weekend)*250;
	cout<<time;
	return 0;
}
2023/5/3 14:35
加载中...