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

int main() {
	ll t;
	ll first, second;
	cin >> t;
	while (t--) {
		cin >> first >> second;
		if (first <= second)
			cout << second << endl;
		else if (first > second) {
				ll k = ceil(first / (second * 1.0)) * second;
				cout << k << endl;
		}
	}
}
Copy
AZOZ with an O (EZ Version) Rokii
GNU G++17
245 ms
1.8 MB
Accepted