Untitled

 avatar
user_7248805
plain_text
2 years ago
203 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int k, b, x, y, N;
	cin >> b >> k;
	cin >> N;
	for (int i = 0; i < N; i++) 
	{
		cin >> y;
		x = (y - b) / k;
		cout << x << endl;
	}
}