Untitled
user_7248805
plain_text
2 years ago
203 B
1
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...