Source Code
#include <bits/stdc++.h>
using namespace std;

void solve()
{
	int a,b;

scanf("%d %d",&a,&b);
//	if(b>=a)
//	{
//		printf("%d\n",b);
//		return;
//	}
int x=ceil(a*1.0/b);
printf("%d\n",x*b);
}

int main() {
	int t=1;
	cin>>t;
	while(t--)
	{
		solve();
	}
	return 0;
}

Copy
AZOZ with an O (EZ Version) TATAKAE
GNU G++17
28 ms
1.4 MB
Accepted