#include <iostream> using namespace std; int main() { cin.sync_with_stdio(0); cin.tie(0); int T; cin >> T; while(T--) { int X, Y, Z; cin >> X >> Y >> Z; int M = 0; while(Y+(M+1)*X <= Z) M++; cout << M << "\n"; } }