Source Code
#include <iostream>
#include <math.h>
using namespace std;

int main() {
	int T;
	float x, y;
	cin >> T;
	while (T--) {
		cin >> x >> y;
		float div = x/y;
		int mult = ceil(div);
		int answer = y * mult;
		cout << answer << endl;
	}
}
Copy
AZOZ with an O (EZ Version) Dana
GNU G++17
280 ms
1.6 MB
Wrong Answer