Source Code
#include <stdio.h>

int main(){
    long long x;
    int y,T;
    scanf("%d",&T);
    for(int i=0;i<T;i++){
        scanf("%lld %d",&x,&y);
        if(x>=y){
            for(long long k=x;k>=x;k++){
                if(k%y==0){
                    printf("%lld\n",k);
                    break;
                }
            }
        }
        else{
            printf("%d\n",y);
            continue;
        }
    }
}
Copy
AZOZ with an O (EZ Version) LazyyTurtle
GNU G++17
2051 ms
1.2 MB
Time Limit Exceeded