C 刷题统计
#include <iostream>
using namespace std;
int main()
{
long long a,b,n,x,y=0;
cin>>a>>b>>n;
x=n/(5*a+2*b)*7;
n%=(5*a+2*b);
while(n>0){
y++;
if(y<6)n-=a;
else n-=b;
}
cout<<x+y;
return 0;
}