Source Code
#include <iostream>
#include <math.h>
using namespace std;
#define ll long long int

int main() {
	ll t;
	float first, second;
	cin >> t;
	while (t--) {
		cin >> first >> second;
		float k = first;
		if (k < second)
			cout << second << endl;
		else if (k >= second) {
			cout << second * ceil(k / second) << endl;
		}
	}

}
Copy
AZOZ with an O (EZ Version) Rokii
GNU G++17
374 ms
2.0 MB
Wrong Answer