#include using namespace std; int main(){ long A,B,T,N,result = 10000000000; int A_times,B_times,ab_times=0; //T=A*B*ab_times+N | N < A*B cin >> A>>B>>T; ab_times = T/(A*B); N = T-A*B*ab_times; for(B_times = 0;B*(B_times-1)