Source Code
#include<iostream>
#include <math.h>
using namespace std ;
int main()
{
   int t ;
   cin>>t;
   while(t--)
   {

      double x ,y;
       cin>>x>>y;
       if(y>=x) cout<<(long long)y<<endl;
       else
       {
           long long  temp = ceil(x/y);
           cout<<temp*(long long) (y)<<endl;
       }

   }
}
Copy
AZOZ with an O (EZ Version) Joud
GNU G++17
281 ms
1.7 MB
Accepted