求调
查看原帖
求调
1621156
Helewei37楼主2025/7/29 15:10
#include<bits/stdc++.h>
using namespace std;
int main(){
	long long a,s,d,f,g,h=0,j,k=0,l=0;
	cin>>a>>s>>d;
	while(1){
		k%=7;
		if(k>=0&&k<=4){
			k++;
			h++;
			l+=a;
		}else{
			k++;
			h++;
			l+=s;
		}
		if(l>=d){
			cout<<h;
			return 0;
		}
	}
}
2025/7/29 15:10
加载中...