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);
        for(long long k=x;k>=x;k++){
            if(k%y==0){
                printf("%lld",k);
                break;
            }
        }
    }


}
Copy
AZOZ with an O (EZ Version) LazyyTurtle
GNU G++17
2 ms
232 KB
Wrong Answer