Untitled
user_7248805
plain_text
3 years ago
203 B
4
Indexable
#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;
}
}Editor is loading...