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

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