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<<y<<endl;
       else
       {
          double   temp = ceil(x/y);
           cout<<temp*y<<endl;
       }

   }
}
Copy
AZOZ with an O (EZ Version) Joud
GNU G++17
343 ms
1.8 MB
Wrong Answer