Untitled
Anonymous
plain_text
11/10/2022 6:15 PM
268 B
8
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...