#include<iostream> using namespace std; int main() { int n, k, x, sum; int t; cin >> t; for (int i = 0; i < t; i++) { cin >> n >> k >> x; sum = 0; sum += (n / k) - (x / k); cout << sum << " "; } cout << " "; return 0; }