刷题统计
#include<iostream>
using namespace std;
typedef long long LL;
LL a,b,n;
int main(){
cin>>a>>b>>n;
LL s=a*5+2*b;
LL k=n/s,sum=n%s,i;
for(i=1;i<=7;i++){
if(i<=5){
if(sum>a)sum-=a;
else break;
}else{
if(sum>b)sum-=b;
else break;
}
}
if(sum)cout<<k*7+i<<endl;
else cout<<k*7<<endl;
return 0;
}